Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2016-08-26 15:56:53 +0300
committerGitHub <noreply@github.com>2016-08-26 15:56:53 +0300
commit00bb9294eddafd362042152ac7ab9ab0ec716ac3 (patch)
treef2d3ae57f214700dc4fea57a03aa6fc081bfb8af /settings
parent63addaa6c6b2f7b9b963aa224453fb25d8fc3d58 (diff)
parentabb3127ff23597f9342ec1dff9ae28722b88c551 (diff)
Merge pull request #1053 from nextcloud/set-quota-non-int
fix setting quota to default or unlimited
Diffstat (limited to 'settings')
-rw-r--r--settings/js/users/users.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/settings/js/users/users.js b/settings/js/users/users.js
index 78118d5c5aa..4ce77648826 100644
--- a/settings/js/users/users.js
+++ b/settings/js/users/users.js
@@ -584,7 +584,7 @@ var UserList = {
if (quota === 'other') {
return;
}
- if (isNaN(parseInt(quota, 10)) || parseInt(quota, 10) < 0) {
+ if ((quota !== 'default' && quota !=="none") && (isNaN(parseInt(quota, 10)) || parseInt(quota, 10) < 0)) {
// 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}));