summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/wordpress-mobile-pack/admin/js/UI.Modules/Settings/WMP_ALLOW_TRACKING.min.js')
-rw-r--r--[-rwxr-xr-x]plugins/wordpress-mobile-pack/admin/js/UI.Modules/Settings/WMP_ALLOW_TRACKING.min.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/wordpress-mobile-pack/admin/js/UI.Modules/Settings/WMP_ALLOW_TRACKING.min.js b/plugins/wordpress-mobile-pack/admin/js/UI.Modules/Settings/WMP_ALLOW_TRACKING.min.js
index 8204d895..d8489036 100755..100644
--- a/plugins/wordpress-mobile-pack/admin/js/UI.Modules/Settings/WMP_ALLOW_TRACKING.min.js
+++ b/plugins/wordpress-mobile-pack/admin/js/UI.Modules/Settings/WMP_ALLOW_TRACKING.min.js
@@ -1 +1 @@
-function WMP_ALLOW_TRACKING(){var t=this;this.type="wmp_allowtracking",this.form,this.DOMDoc,this.send_btn,this.init=function(){WMPJSInterface=window.parent.WMPJSInterface,this.send_btn=jQuery("#"+this.type+"_send_btn",this.DOMDoc).get(0),this.form=this.DOMDoc.getElementById(this.type+"_form"),this.addButtonsActions(),null==this.form},this.addButtonsActions=function(){jQuery("#"+t.type+"_check",t.DOMDoc).change(function(){this.checked?jQuery("#wmp_option_allow_tracking",t.DOMDoc).val("1"):jQuery("#wmp_option_allow_tracking",t.DOMDoc).val("0")}),jQuery(this.send_btn).unbind("click"),jQuery(this.send_btn).bind("click",function(){t.disableButton(this),t.sendData()}),t.enableButton(this.send_btn),jQuery("#"+t.form.id,t.DOMDoc).bind("keypress",function(t){return 13==t.keyCode?!1:void 0})},this.enableButton=function(t){jQuery(t).css("cursor","pointer"),jQuery(t).animate({opacity:1},100)},this.disableButton=function(t){jQuery(t).unbind("click"),jQuery(t).animate({opacity:.4},100),jQuery(t).css("cursor","default")},this.submitForm=function(){return WMPJSInterface.AjaxUpload.dosubmit(t.form,{onStart:t.startUploadingData,onComplete:t.completeUploadingData})},this.sendData=function(){jQuery("#"+this.form.id,this.DOMDoc).unbind("submit"),jQuery("#"+this.form.id,this.DOMDoc).bind("submit",function(){t.submitForm()}),jQuery("#"+this.form.id,this.DOMDoc).submit(),t.disableButton(t.send_btn)},this.startUploadingData=function(){return WMPJSInterface.Preloader.start(),setTimeout(function(){var e=t.form.elements;for(nElems=e.length,j=0;j<nElems;j++)e[j].disabled=!0},300),!0},this.completeUploadingData=function(e){if(jQuery("#"+t.form.id,t.DOMDoc).unbind("submit"),jQuery("#"+t.form.id,t.DOMDoc).bind("submit",function(){return!1}),WMPJSInterface.Preloader.remove(100),e=Boolean(Number(String(e))),1==e){var n="Your settings have been successfully modified!";WMPJSInterface.Loader.display({message:n})}else{var n="There was an error. Please reload the page and try again.";WMPJSInterface.Loader.display({message:n})}setTimeout(function(){var e=t.form.elements;for(nElems=e.length,j=0;j<nElems;j++)e[j].disabled=!1},300),t.addButtonsActions()}} \ No newline at end of file
+function WMP_ALLOW_TRACKING(){var t=this;this.type="wmp_allowtracking",this.form,this.DOMDoc,this.send_btn,this.init=function(){WMPJSInterface=window.parent.WMPJSInterface,this.send_btn=jQuery("#"+this.type+"_send_btn",this.DOMDoc).get(0),this.form=this.DOMDoc.getElementById(this.type+"_form"),this.addButtonsActions(),this.form},this.addButtonsActions=function(){jQuery("#"+t.type+"_check",t.DOMDoc).change(function(){this.checked?jQuery("#wmp_option_allow_tracking",t.DOMDoc).val("1"):jQuery("#wmp_option_allow_tracking",t.DOMDoc).val("0")}),jQuery(this.send_btn).unbind("click"),jQuery(this.send_btn).bind("click",function(){t.disableButton(this),t.sendData()}),t.enableButton(this.send_btn),jQuery("#"+t.form.id,t.DOMDoc).bind("keypress",function(t){if(13==t.keyCode)return!1})},this.enableButton=function(t){jQuery(t).css("cursor","pointer"),jQuery(t).animate({opacity:1},100)},this.disableButton=function(t){jQuery(t).unbind("click"),jQuery(t).animate({opacity:.4},100),jQuery(t).css("cursor","default")},this.submitForm=function(){return WMPJSInterface.AjaxUpload.dosubmit(t.form,{onStart:t.startUploadingData,onComplete:t.completeUploadingData})},this.sendData=function(){jQuery("#"+this.form.id,this.DOMDoc).unbind("submit"),jQuery("#"+this.form.id,this.DOMDoc).bind("submit",function(){t.submitForm()}),jQuery("#"+this.form.id,this.DOMDoc).submit(),t.disableButton(t.send_btn)},this.startUploadingData=function(){return WMPJSInterface.Preloader.start(),setTimeout(function(){var e=t.form.elements;for(nElems=e.length,j=0;j<nElems;j++)e[j].disabled=!0},300),!0},this.completeUploadingData=function(e){if(jQuery("#"+t.form.id,t.DOMDoc).unbind("submit"),jQuery("#"+t.form.id,t.DOMDoc).bind("submit",function(){return!1}),WMPJSInterface.Preloader.remove(100),1==(e=Boolean(Number(String(e))))){var n="Your settings have been successfully modified!";WMPJSInterface.Loader.display({message:n})}else{n="There was an error. Please reload the page and try again.";WMPJSInterface.Loader.display({message:n})}setTimeout(function(){var e=t.form.elements;for(nElems=e.length,j=0;j<nElems;j++)e[j].disabled=!1},300),t.addButtonsActions()}} \ No newline at end of file