From 1edbca46b0aef5d6bc9ca2d8c28dd32a7e7e9cf5 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Tue, 26 Aug 2014 23:30:22 +0200 Subject: Re-apply 8446e16346ece5a934550f69e81d0cad528f7fba --- module/web/themes/default/js/admin.min.js | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 module/web/themes/default/js/admin.min.js (limited to 'module/web/themes/default/js/admin.min.js') diff --git a/module/web/themes/default/js/admin.min.js b/module/web/themes/default/js/admin.min.js new file mode 100644 index 000000000..94a5e494d --- /dev/null +++ b/module/web/themes/default/js/admin.min.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