Browse Source

dont try to create a user with an already existing username

remotes/origin/stable4
Robin Appelman 14 years ago
parent
commit
c2183427c3
  1. 3
      settings/js/users.js

3
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;

Loading…
Cancel
Save