From 3ba3fbc910f83f6c4b4e4ac17bcbf5fea1ca58dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn?= Date: Wed, 23 Jul 2014 12:52:36 +0200 Subject: [PATCH] Feature #2964: Fix bug, missing replacements for unlimited quota --- src/sunstone/public/js/sunstone.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/sunstone/public/js/sunstone.js b/src/sunstone/public/js/sunstone.js index 459cf158b7..3ac94b0232 100644 --- a/src/sunstone/public/js/sunstone.js +++ b/src/sunstone/public/js/sunstone.js @@ -2249,8 +2249,8 @@ var Quotas = { if (default_ds_quotas == undefined){ default_ds_quotas = { - "IMAGES" : "0", - "SIZE" : "0" + "IMAGES" : QUOTA_LIMIT_UNLIMITED, + "SIZE" : QUOTA_LIMIT_UNLIMITED } } @@ -2309,7 +2309,7 @@ var Quotas = { if (default_img_quotas == undefined){ default_img_quotas = { - "RVMS" : "0" + "RVMS" : QUOTA_LIMIT_UNLIMITED } } @@ -2362,7 +2362,7 @@ var Quotas = { if (default_net_quotas == undefined){ default_net_quotas = { - "LEASES" : "0" + "LEASES" : QUOTA_LIMIT_UNLIMITED } } @@ -2473,7 +2473,7 @@ function setupQuotasDialog(dialog){ notifyError(tr("Please select an element")); return false; }; - if (!value) value = -1; + if (!value) value = QUOTA_LIMIT_DEFAULT; json[name] = value; };