index of
/
home
/
thefkyzp
/
public_html
/
wp-content
/
themes
/
oceanwp
/
inc
/
activation-notice
/
assets
/
js
/
File: /home/thefkyzp/public_html/wp-content/themes/oceanwp/inc/activation-notice/assets/js/notice.min.js
jQuery(document).ready(function(t){var n={isLoading:!1,init:function(){t(".owp-ocean-extra-plugin-inner").length&&(this.render_actions(),t(document).on("click",".owp-ocean-extra-plugin-inner .notice-dismiss",this.dismiss_notice),t(document).on("click",".owp-ocean-extra-plugin-inner .notice-actions button",this.main_action))},render_actions:function(){t.ajax({type:"post",url:ajaxurl,data:{action:"oceanwp_check_notice_actions"},success:function(n){""!=n.data&&t(".owp-notification-content").append(n.data)},complete:function(){}})},dismiss_notice:function(n){t(n.target).closest(".notice-ocean-extra-plugin").remove(),t.ajax(ajaxurl,{type:"POST",data:{action:"oceanwp_dismissed_notice"}})},main_action:function(a){n.isLoading=!0;var i=t(a.target);i.prop("disabled","disabled"),"activate"==i.data("action")?t(a.target).text(owp_notification_i18n.activating):"install_activate"==i.data("action")&&t(a.target).text(owp_notification_i18n.installing_activating),t(a.target).append('<i className="dashicons dashicons-update" />'),t.ajax({type:"post",url:ajaxurl,data:{action:"oceanwp_notice_button_click"},success:function(t){t.success&&"active"===t.data.status&&location.assign(t.data.pluginUrl),n.isLoading=!1},complete:function(){}})}};n.init()});