diff options
Diffstat (limited to 'settings/js/users/users.js')
-rw-r--r-- | settings/js/users/users.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/settings/js/users/users.js b/settings/js/users/users.js index a2ccc059f15..d23bd553246 100644 --- a/settings/js/users/users.js +++ b/settings/js/users/users.js @@ -533,7 +533,7 @@ var UserList = { if (quota === 'other') { return; } - if ((quota !== 'default' && quota !=="none") && (isNaN(parseInt(quota, 10)) || parseInt(quota, 10) < 0)) { + if ((quota !== 'default' && quota !=="none") && (!OC.Util.computerFileSize(quota))) { // the select component has added the bogus value, delete it again $select.find('option[selected]').remove(); OC.Notification.showTemporary(t('core', 'Invalid quota value "{val}"', {val: quota})); |