diff options
author | Georg Ehrke <ownclouddev@georgswebsite.de> | 2012-01-02 11:49:53 +0100 |
---|---|---|
committer | Georg Ehrke <ownclouddev@georgswebsite.de> | 2012-01-02 11:49:53 +0100 |
commit | 534b6f3a098c8f2bb5993592e73f5af75c3c86bc (patch) | |
tree | c609f4429b17c91b41368bbc0fa669e1a3ffbb76 /settings/js | |
parent | 4374d55e5e020a1f2673a18991be6f2560e9f2c3 (diff) | |
download | nextcloud-server-534b6f3a098c8f2bb5993592e73f5af75c3c86bc.tar.gz nextcloud-server-534b6f3a098c8f2bb5993592e73f5af75c3c86bc.zip |
Fix whitespace username
Diffstat (limited to 'settings/js')
-rw-r--r-- | settings/js/users.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/settings/js/users.js b/settings/js/users.js index 4fea52e4a1f..79b4e80870a 100644 --- a/settings/js/users.js +++ b/settings/js/users.js @@ -126,7 +126,7 @@ $(document).ready(function(){ $('#newuser').submit(function(event){ event.preventDefault(); var username=$('#newusername').val(); - if(username == '') { + if($.trim(username) == '') { alert('Please provide a username!'); return false; } |