summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/wordpress-mobile-pack/admin/js/UI.Modules/Waitlist/WMP_UPGRADE_NOTICE.min.js')
-rw-r--r--[-rwxr-xr-x]plugins/wordpress-mobile-pack/admin/js/UI.Modules/Waitlist/WMP_UPGRADE_NOTICE.min.js11
1 files changed, 1 insertions, 10 deletions
diff --git a/plugins/wordpress-mobile-pack/admin/js/UI.Modules/Waitlist/WMP_UPGRADE_NOTICE.min.js b/plugins/wordpress-mobile-pack/admin/js/UI.Modules/Waitlist/WMP_UPGRADE_NOTICE.min.js
index e91ac1c0..182ac56c 100755..100644
--- a/plugins/wordpress-mobile-pack/admin/js/UI.Modules/Waitlist/WMP_UPGRADE_NOTICE.min.js
+++ b/plugins/wordpress-mobile-pack/admin/js/UI.Modules/Waitlist/WMP_UPGRADE_NOTICE.min.js
@@ -1,10 +1 @@
-function WMP_UPGRADE_NOTICE(){var t=this;this.changingStatus=!1,this.init=function(){this.addButtonsActions()},this.addButtonsActions=function(){var n=jQuery(".wmp_upgrade_notice .notice-dismiss");n.length>0&&n.on("click",function(){1!=t.changingStatus&&(t.changingStatus=!0,jQuery.post(ajaxurl,{action:"wmp_settings_save",wmp_option_upgrade_notice_updated:0},function(n){t.changingStatus=!1}))})}}
-
-// normally this part will be added in the html document using JSInterface, but this notice can appear outside the admin pages
-if (window.WMPJSInterface && window.WMPJSInterface != null){
- jQuery(document).ready(function(){
-
- var WMP_UI_upgradenotice = new WMP_UPGRADE_NOTICE();
- WMP_UI_upgradenotice.init();
- });
-} \ No newline at end of file
+function WMP_UPGRADE_NOTICE(){var n=this;this.changingStatus=!1,this.init=function(){this.addButtonsActions()},this.addButtonsActions=function(){var t=jQuery(".wmp_upgrade_notice .notice-dismiss");t.length>0&&t.on("click",function(){1!=n.changingStatus&&(n.changingStatus=!0,jQuery.post(ajaxurl,{action:"wmp_settings_save",wmp_option_upgrade_notice_updated:0},function(t){n.changingStatus=!1}))})}}window.WMPJSInterface&&null!=window.WMPJSInterface&&jQuery(document).ready(function(){(new WMP_UPGRADE_NOTICE).init()}); \ No newline at end of file