← Back
Editing: admin-settings-page.js
(()=>{var t={3152(){!function(t){"use strict";function n(){const n=t("#popup_maker_pro_license_key");if(!n.length)return;const e=n.closest(".pum-license-input-wrapper").find(".pum-license-activate, .button-primary");function i(){const t=32===n.val().trim().length,i=!0===e.data("processing");e.length&&e.prop("disabled",!t||i)}n.on("paste",function(){setTimeout(function(){32===n.val().trim().length&&e.length&&!e.prop("disabled")&&e.trigger("click")},100)}),n.on("keypress",function(t){13!==t.which&&13!==t.keyCode||(t.preventDefault(),32===n.val().trim().length&&e.length&&!e.prop("disabled")&&e.trigger("click"))}),n.on("input keyup",i),e.on("click",function(){const n=t(this);setTimeout(function(){n.data("processing",!0);const t=n.val()||n.text();n.data("original-text",t),n.val(t+"...").prop("disabled",!0)},50)}),i()}window.PUM_Admin=window.PUM_Admin||{},t(function(){n()}),t(document).on("pum_init",function(){n()})}(jQuery)}},n={};function e(i){var o=n[i];if(void 0!==o)return o.exports;var r=n[i]={exports:{}};return t[i](r,r.exports,e),r.exports}(()=>{"use strict";var t;e(3152),t=jQuery,window.PUM_Admin=window.PUM_Admin||{},t(function(){function n(){const n=window.location.hash.replace("#","");if(n){let e=t(`a[href="#${n}"]`);e.length||(e=t(`a[href="#pum-settings_${n}"]`)),e.length&&setTimeout(()=>e.trigger("click"),100)}}var e=t("#pum-settings-container"),i=pum_settings_editor.form_args||{},o=pum_settings_editor.current_values||{};function r(){const n=e.children(".pum-tabs-container").first().children(".tab-content.active"),i="pum-settings_go-pro"===n.attr("id")&&0===n.find(".pum-field").not(".pum-go-pro-placeholder").length;t("#pum-settings-save").toggle(!i)}e.length&&(e.find(".pum-no-js").hide(),PUM_Admin.forms.render(i,o,e),r(),n(),t(window).on("hashchange",n),e.on("click",'.pum-tabs-container a[href^="#"]',function(){setTimeout(()=>{window.location.hash&&history.replaceState(null,null,window.location.pathname+window.location.search),r()},50)}))})})()})();
Save File
Cancel