about summary refs log tree commit diff stats
path: root/wiki/lib/plugins/usermanager/script.js
diff options
context:
space:
mode:
Diffstat (limited to 'wiki/lib/plugins/usermanager/script.js')
-rw-r--r--wiki/lib/plugins/usermanager/script.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/wiki/lib/plugins/usermanager/script.js b/wiki/lib/plugins/usermanager/script.js
new file mode 100644
index 0000000..de01324
--- /dev/null
+++ b/wiki/lib/plugins/usermanager/script.js
@@ -0,0 +1,8 @@
+/**
+ * Add JavaScript confirmation to the User Delete button
+ */
+jQuery(function(){
+    jQuery('#usrmgr__del').click(function(){
+        return confirm(LANG.del_confirm);
+    });
+});