diff options
-rw-r--r-- | settings/js/users.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/settings/js/users.js b/settings/js/users.js index 46ab12b857a..c9b1d855db0 100644 --- a/settings/js/users.js +++ b/settings/js/users.js @@ -127,6 +127,9 @@ $(document).ready(function(){ $('#newuser').submit(function(event){ event.preventDefault(); var username=$('#newusername').val(); + if($('#content table tbody tr').filterAttr('data-uid',username).length>0){ + return; + } if($.trim(username) == '') { alert('Please provide a username!'); return false; |