File Editor
Directories:
.. (Back)
Files:
admin.js
divi-builder.min.js
menu_fix.js
Create New File
Create
Edit File: admin.js
!function(e){var t={};function n(i){if(t[i])return t[i].exports;var s=t[i]={i:i,l:!1,exports:{}};return e[i].call(s.exports,s,s.exports,n),s.l=!0,s.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)n.d(i,s,function(t){return e[t]}.bind(null,s));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1)}([,function(e,t){var n;(n=jQuery)(document).ready((function(){var e=n("body");n(".et_dashboard_updates_save").click((function(){var e=n(this).closest("ul"),t=e.find("span.spinner"),i=e.find(".updates_option_username").val(),s=e.find(".updates_option_api_key").val();return n.ajax({type:"POST",url:builder_settings.ajaxurl,data:{action:"et_builder_save_updates_settings",et_builder_nonce:builder_settings.et_builder_nonce,et_builder_updates_username:i,et_builder_updates_api_key:s},beforeSend:function(e){t.addClass("et_dashboard_spinner_visible")},success:function(e){t.removeClass("et_dashboard_spinner_visible")}}),!1})),n(".et_google_api_save").click((function(){var e=n(this).closest("ul"),t=e.find("span.spinner"),i=e.find(".google_api_key").val(),s=!!e.find(".enqueue_google_maps_script").is(":checked")&&"on";return use_google_fonts=!!e.find(".use_google_fonts").is(":checked")&&"on",n.ajax({type:"POST",url:builder_settings.ajaxurl,data:{action:"et_builder_save_google_api_settings",et_builder_nonce:builder_settings.et_builder_nonce,et_builder_google_api_key:i,et_builder_enqueue_google_maps_script:s,et_builder_use_google_fonts:use_google_fonts},beforeSend:function(e){t.addClass("et_dashboard_spinner_visible")},success:function(e){t.removeClass("et_dashboard_spinner_visible")}}),!1})),n("#et_pb_save_plugin").click((function(){var e,t=n("#et_pb_loading_animation"),i=n("#et_pb_success_animation");return tinyMCE.triggerSave(),e=n("."+dashboardSettings.plugin_class+" #et_dashboard_options").serialize(),n.ajax({type:"POST",url:builder_settings.ajaxurl,data:{action:"et_builder_save_settings",options:e,options_sub_title:"",save_settings_nonce:builder_settings.save_settings},beforeSend:function(e){t.removeClass("et_pb_hide_loading"),i.removeClass("et_pb_active_success"),t.show()},success:function(e){t.addClass("et_pb_hide_loading"),i.addClass("et_pb_active_success").show(),setTimeout((function(){i.fadeToggle(),t.fadeToggle()}),1e3)}}),!1})),n(".et_builder_clear_static_css").on("click",(function(e){var t,i,s;e.preventDefault(),t=n(this),i=t.closest(".input").find("span.spinner"),s={action:"et_core_page_resource_clear",et_owner:"all",et_post_id:"all",clear_page_resources_nonce:builder_settings.et_core_nonces.clear_page_resources_nonce},n.ajax({type:"POST",url:ajaxurl,data:s,beforeSend:function(e){i.addClass("et_dashboard_spinner_visible")},success:function(e){i.length>0&&setTimeout((function(){i.removeClass("et_dashboard_spinner_visible")}),500)}})})),e.append('<div id="et_pb_loading_animation"></div>'),e.append('<div id="et_pb_success_animation"></div>'),n("#et_pb_loading_animation").hide(),n("#et_pb_success_animation").hide()}))}]);
Save Changes
Rename File
Rename