From c29dd33eae1d3449bc9639cc05ac00551a94bb60 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Tue, 17 Feb 2015 01:17:42 +0100 Subject: webui temp --- module/web/media/js/admin.js | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 module/web/media/js/admin.js (limited to 'module/web/media/js/admin.js') diff --git a/module/web/media/js/admin.js b/module/web/media/js/admin.js new file mode 100644 index 000000000..d34d310a0 --- /dev/null +++ b/module/web/media/js/admin.js @@ -0,0 +1,3 @@ +{% autoescape true %} +var root;root=this;window.addEvent("domready",function(){var f,c,b,e,a,d;root.passwordDialog=new MooDialog({destroyOnHide:false});root.passwordDialog.setContent($("password_box"));$("login_password_reset").addEvent("click",function(g){return root.passwordDialog.close()});$("login_password_button").addEvent("click",function(j){var h,i,g;i=$("login_new_password").get("value");g=$("login_new_password2").get("value");if(i===g){h=$("password_form");h.set("send",{onSuccess:function(k){return root.notify.alert("Success",{className:"success"})},onFailure:function(k){return root.notify.alert("Error",{className:"error"})}});h.send();root.passwordDialog.close()}else{alert('{{_("Passwords did not match.")}}')}return j.stop()});d=$$(".change_password");for(e=0,a=d.length;e