diff --git a/lib/plugins/usermanager/script.js b/lib/plugins/usermanager/script.js new file mode 100644 index 0000000000000000000000000000000000000000..252e977f292d87f5bc1e39ea9355b1ddb76d264a --- /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);