%PDF- %PDF-
Direktori : /home/dopla/www/wp-content/plugins/polylang/js/ |
Current File : /home/dopla/www/wp-content/plugins/polylang/js/post.min.js |
!function(n){n.ajaxPrefilter(function(a){"string"==typeof a.data&&-1!==a.data.indexOf("action=ajax-tag-search")&&(lang=n(':input[name="inline_lang_choice"]').val())&&(a.data="lang="+lang+"&"+a.data)})}(jQuery),function(n){n(document).bind("DOMNodeInserted",function(a){function e(a){"undefined"!=typeof pll_term_languages&&n.each(pll_term_languages,function(e,t){n.each(t,function(t,i){n.each(i,function(i){id="#"+t+"-"+pll_term_languages[e][t][i],a==e?n(id).show():n(id).hide()})})})}function t(a){"undefined"!=typeof pll_page_languages&&n.each(pll_page_languages,function(e,t){n.each(t,function(t){v=n('#post_parent option[value="'+pll_page_languages[e][t]+'"]'),a==e?v.show():v.hide()})})}var i=n(a.target);if("inline-edit"==i.attr("id")){var o=i.prev().attr("id").replace("post-","");if(o>0){var l=i.find(':input[name="inline_lang_choice"]'),p=n("#lang_"+o).html();l.val(p),e(p),t(p),l.change(function(){e(n(this).val()),t(n(this).val())})}}})}(jQuery),function(n){n(document).ajaxSuccess(function(a,e,t){function i(a){var e=new Array;n(".translation_"+a).each(function(){e.push(n(this).parent().parent().attr("id").substring(5))});var t={action:"pll_update_post_rows",post_id:a,translations:e.join(","),post_type:n("input[name='post_type']").val(),screen:n("input[name='screen']").val(),_pll_nonce:n("input[name='_inline_edit']").val()};n.post(ajaxurl,t,function(a){if(a){var e=wpAjax.parseAjaxResponse(a,"ajax-response");n.each(e.responses,function(){"row"==this.what&&n("#post-"+this.supplemental.post_id).replaceWith(this.data)})}})}if("string"==typeof t.data){var o=wpAjax.unserialize(t.data);"undefined"!=typeof o.action&&"inline-save"==o.action&&i(o.post_ID)}})}(jQuery);