dont try to create a user with an already existing username

This commit is contained in:
Robin Appelman 2012-01-23 17:34:23 +01:00
parent 76ce8c6c6a
commit c2183427c3
1 changed files with 3 additions and 0 deletions

View File

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