summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/plugins/usermanager/script.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/plugins/usermanager/script.js b/lib/plugins/usermanager/script.js
new file mode 100644
index 000000000..252e977f2
--- /dev/null
+++ b/lib/plugins/usermanager/script.js
@@ -0,0 +1,10 @@
+/**
+ * Add JavaScript confirmation to the User Delete button
+ */
+function usrmgr_delconfirm(){
+ if($('usrmgr__del')){
+ addEvent( $('usrmgr__del'),'click',function(){ return confirm(reallyDel); } );
+ addEvent( $('usrmgr__del'),'keypress',function(){ return confirm(reallyDel); } );
+ }
+};
+addInitEvent(usrmgr_delconfirm);