dont try to create a user with an already existing username
This commit is contained in:
parent
76ce8c6c6a
commit
c2183427c3
1 changed files with 3 additions and 0 deletions
|
@ -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…
Reference in a new issue