jQuery(document).ready(function(r){r("#the-list").on("click",".delete-tag",function(){var t,e=r(this),a=e.parents("tr"),n=!0;return(n="undefined"!=showNotice?showNotice.warn():n)&&(t=e.attr("href").replace(/[^?]*\?/,"").replace(/action=delete/,"action=delete-tag"),r.post(ajaxurl,t,function(e){"1"==e?(r("#ajax-response").empty(),a.fadeOut("normal",function(){a.remove()}),r('select#parent option[value="'+t.match(/tag_ID=(\d+)/)[1]+'"]').remove(),r("a.tag-link-"+t.match(/tag_ID=(\d+)/)[1]).remove()):("-1"==e?r("#ajax-response").empty().append('

'+tagsl10n.noPerm+"

"):r("#ajax-response").empty().append('

'+tagsl10n.broken+"

"),a.children().css("backgroundColor",""))}),a.children().css("backgroundColor","#f33")),!1}),r("#submit").click(function(){var s=r(this).parents("form");return validateForm(s)&&r.post(ajaxurl,r("#addtag").serialize(),function(e){var t,a,n;if(r("#ajax-response").empty(),(t=wpAjax.parseAjaxResponse(e,"ajax-response"))&&!t.errors){if(0<(e=s.find("select#parent").val())&&0'+a+e.name+"")}r('input[type="text"]:visible, textarea:visible',s).val("")}}),!1})});