summaryrefslogtreecommitdiff
path: root/lib/plugins/usermanager/script.js
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2008-06-22 10:48:04 +0200
committerAndreas Gohr <andi@splitbrain.org>2008-06-22 10:48:04 +0200
commit32951c6c0c3c45d1431b526556423e9484c29037 (patch)
tree07f71aef315fa9aa2ab5d724fcc8129ab052ee44 /lib/plugins/usermanager/script.js
parent49ac3837eb784dcadaadeae1fdce0820974b0f12 (diff)
downloadrpg-32951c6c0c3c45d1431b526556423e9484c29037.tar.gz
rpg-32951c6c0c3c45d1431b526556423e9484c29037.tar.bz2
Added JavaScript delete confirm in usermanager
darcs-hash:20080622084804-7ad00-a5cd343deb7b875f50226318311c83e153307fd8.gz
Diffstat (limited to 'lib/plugins/usermanager/script.js')
-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);