File Editor
Directories:
.. (Back)
Files:
accordion.js
accordion.min.js
bookmarklet.js
bookmarklet.min.js
color-picker.js
color-picker.min.js
comment.js
comment.min.js
common.js
common.min.js
custom-background.js
custom-background.min.js
custom-header.js
customize-controls.js
customize-controls.min.js
customize-nav-menus.js
customize-nav-menus.min.js
customize-widgets.js
customize-widgets.min.js
dashboard.js
dashboard.min.js
edit-comments.js
edit-comments.min.js
editor-expand.js
editor-expand.min.js
editor.js
editor.min.js
farbtastic.js
gallery.js
gallery.min.js
image-edit.js
image-edit.min.js
inline-edit-post.js
inline-edit-post.min.js
inline-edit-tax.js
inline-edit-tax.min.js
iris.min.js
language-chooser.js
language-chooser.min.js
link.js
link.min.js
media-gallery.js
media-gallery.min.js
media-upload.js
media-upload.min.js
media.js
media.min.js
nav-menu.js
nav-menu.min.js
password-strength-meter.js
password-strength-meter.min.js
plugin-install.js
plugin-install.min.js
post.js
post.min.js
postbox.js
postbox.min.js
press-this.js
press-this.min.js
revisions.js
revisions.min.js
set-post-thumbnail.js
set-post-thumbnail.min.js
svg-painter.js
svg-painter.min.js
tags-box.js
tags-box.min.js
tags.js
tags.min.js
theme.js
theme.min.js
updates.js
updates.min.js
user-profile.js
user-profile.min.js
user-suggest.js
user-suggest.min.js
widgets.js
widgets.min.js
word-count.js
word-count.min.js
wp-fullscreen-stub.js
wp-fullscreen-stub.min.js
xfn.js
xfn.min.js
Create New File
Create
Edit File: inline-edit-tax.min.js
var inlineEditTax;window.wp=window.wp||{},function(d,s){inlineEditTax={init:function(){var t=this,i=d("#inline-edit");t.type=d("#the-list").attr("data-wp-lists").substr(5),t.what="#"+t.type+"-",d("#the-list").on("click","a.editinline",function(){return inlineEditTax.edit(this),!1}),i.keyup(function(t){if(27===t.which)return inlineEditTax.revert()}),d(".cancel",i).click(function(){return inlineEditTax.revert()}),d(".save",i).click(function(){return inlineEditTax.save(this)}),d("input, select",i).keydown(function(t){if(13===t.which)return inlineEditTax.save(this)}),d('#posts-filter input[type="submit"]').mousedown(function(){t.revert()})},toggle:function(t){var i=this;"none"===d(i.what+i.getId(t)).css("display")?i.revert():i.edit(t)},edit:function(t){var i,e,n=this;return n.revert(),"object"==typeof t&&(t=n.getId(t)),i=d("#inline-edit").clone(!0),e=d("#inline_"+t),d("td",i).attr("colspan",d("th:visible, td:visible",".wp-list-table.widefat:first thead").length),d(n.what+t).hide().after(i).after('<tr class="hidden"></tr>'),(n=d(".name",e)).find("img").replaceWith(function(){return this.alt}),n=n.text(),d(':input[name="name"]',i).val(n),(n=d(".slug",e)).find("img").replaceWith(function(){return this.alt}),n=n.text(),d(':input[name="slug"]',i).val(n),d(i).attr("id","edit-"+t).addClass("inline-editor").show(),d(".ptitle",i).eq(0).focus(),!1},save:function(r){var t=d('input[name="taxonomy"]').val()||"";return"object"==typeof r&&(r=this.getId(r)),d("table.widefat .spinner").addClass("is-active"),t={action:"inline-save-tax",tax_type:this.type,tax_ID:r,taxonomy:t},t=d("#edit-"+r).find(":input").serialize()+"&"+d.param(t),d.post(ajaxurl,t,function(t){var i,e,n,a=d("#edit-"+r+" .inline-edit-save .error");d("table.widefat .spinner").removeClass("is-active"),t?-1!==t.indexOf("<tr")?(d(inlineEditTax.what+r).siblings("tr.hidden").addBack().remove(),e=d(t).attr("id"),d("#edit-"+r).before(t).remove(),i=e?(n=e.replace(inlineEditTax.type+"-",""),d("#"+e)):(n=r,d(inlineEditTax.what+r)),d("#parent").find("option[value="+n+"]").text(i.find(".row-title").text()),i.hide().fadeIn(400,function(){i.find(".editinline").focus(),s.a11y.speak(inlineEditL10n.saved)})):(a.html(t).show(),s.a11y.speak(a.text())):(a.html(inlineEditL10n.error).show(),s.a11y.speak(inlineEditL10n.error))}),!1},revert:function(){var t=d("table.widefat tr.inline-editor").attr("id");t&&(d("table.widefat .spinner").removeClass("is-active"),d("#"+t).siblings("tr.hidden").addBack().remove(),t=t.substr(t.lastIndexOf("-")+1),d(this.what+t).show().find(".editinline").focus())},getId:function(t){t=("TR"===t.tagName?t.id:d(t).parents("tr").attr("id")).split("-");return t[t.length-1]}},d(document).ready(function(){inlineEditTax.init()})}(jQuery,window.wp);
Save Changes
Rename File
Rename