관리-도구
편집 파일: page-quick-edit.js
(()=>{"use strict";var e={n:t=>{var o=t&&t.__esModule?()=>t.default:()=>t;return e.d(o,{a:o}),o},d:(t,o)=>{for(var n in o)e.o(o,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:o[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=jQuery;var o=e.n(t);function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function a(e){o().ajax({url:ajaxurl,method:"post",data:{action:"advads_get_disabled_ads",id:e,nonce:window.advancedAds.page_quick_edit.nonce}}).then((function(t){!function(e,t){var n=o()("#edit-".concat(e)),a=n.find('[name="advads-disable-ads"]');a.closest("fieldset").prop("disabled",!1),a.prop("checked",Boolean(t.disable_ads));var d=n.find('[name="advads-disable-the-content"]');d.length&&d.prop("disabled",!1).prop("checked",Boolean(t.disable_the_content))}(e,t.data)}))}o()((function(){var e=window.inlineEditPost.edit;window.inlineEditPost.edit=function(t){e.apply(this,arguments),"object"===n(t)&&a(parseInt(this.getId(t)))}}))})();