%PDF- %PDF-
Direktori : /proc/985914/root/data/old/home/stash/stash-home/tmp/webresources/ |
Current File : //proc/985914/root/data/old/home/stash/stash-home/tmp/webresources/40.cachedfile |
;/* module-key = 'com.atlassian.analytics.analytics-client:enable-analytics', location = 'js/enable-analytics.js' */ (function(b){var a=typeof AJS.contextPath=="function"?AJS.contextPath():typeof AJS.Confluence!="undefined"?AJS.Confluence.getContextPath():window.contextPath!=null?window.contextPath:"";AJS.toInit(function(d){var c=d("#analytics-enable-form");c.submit(function(f){f.preventDefault();d(".buttons .loading").removeClass("hidden");d.ajax({url:a+"/rest/analytics/1.0/config/enable",type:"PUT",contentType:"application/json",data:JSON.stringify({analyticsEnabled:c.find("input[name=analyticsEnabled]:checked").val()=="true"}),success:function(){AJS.messages.generic("#analytics-enable-form",{body:"Configuration change saved successfully.",id:"config-updated",insert:"append",closeable:false,shadowed:true,fadeout:true})},error:function(){AJS.messages.error("#analytics-enable-form",{body:"Configuration change could not be saved, check your connection with the server.",id:"config-update-failed",insert:"append",closeable:false,shadowed:true,fadeout:true})},complete:function(){d(".buttons .loading").addClass("hidden")}})})})})(AJS.$);;