OwlCyberSecurity - MANAGER
Edit File: post.min.js
var __webpack_exports__={};jQuery((function(e){e.ajaxPrefilter((function(n,t,a){"string"==typeof n.data&&-1!==n.data.indexOf("action=ajax-tag-search")&&(lang=e(':input[name="inline_lang_choice"]').val())&&(n.data="lang="+lang+"&"+n.data)}))})),jQuery((function(e){const n=document.getElementById("the-list");new MutationObserver((n=>{for(const i of n){const o=Array.from(i.addedNodes).filter((e=>e.nodeType===Node.ELEMENT_NODE))[0];if(0<i.addedNodes.length&&o.classList.contains("inline-editor")){const s=Number(o.id.substring(5));if(s>0){const l=o.querySelector('select[name="inline_lang_choice"]'),c=document.querySelector("#lang_"+String(s)).innerHTML;l.value=c,t(c),a(c),l.addEventListener("change",(function(e){const n=e.target.value;t(n),a(n)}))}}function t(n){"undefined"!=typeof pll_term_languages&&e.each(pll_term_languages,(function(t,a){e.each(a,(function(a,i){e.each(i,(function(i){id="#"+a+"-"+pll_term_languages[t][a][i],n==t?e(id).show():e(id).hide()}))}))}))}function a(n){"undefined"!=typeof pll_page_languages&&e.each(pll_page_languages,(function(t,a){e.each(a,(function(a){v=e('#post_parent option[value="'+pll_page_languages[t][a]+'"]'),n==t?v.show():v.hide()}))}))}}})).observe(n,{childList:!0,subtree:!0})})),jQuery((function(e){e(document).ajaxSuccess((function(n,t,a){if("string"==typeof a.data){var i=wpAjax.unserialize(a.data);void 0!==i.action&&"inline-save"==i.action&&function(n){var t=new Array;e(".translation_"+n).each((function(){t.push(e(this).parent().parent().attr("id").substring(5))}));var a={action:"pll_update_post_rows",post_id:n,translations:t.join(","),post_type:e("input[name='post_type']").val(),screen:e("input[name='screen']").val(),_pll_nonce:e("input[name='_inline_edit']").val()};e.post(ajaxurl,a,(function(n){if(n){var t=wpAjax.parseAjaxResponse(n,"pll-ajax-response");e.each(t.responses,(function(){"row"==this.what&&e("#post-"+this.supplemental.post_id).replaceWith(this.data)}))}}))}(i.post_ID)}}))})),jQuery((function(e){e.ajaxPrefilter((function(n,t,a){"string"==typeof n.data&&-1!==n.data.indexOf("action=find_posts")&&(n.data="pll_post_id="+e("#affected").val()+"&"+n.data)}))}));