cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mtutkow...@apache.org
Subject git commit: updated refs/heads/master to e6f8833
Date Mon, 30 Jun 2014 16:40:59 GMT
Repository: cloudstack
Updated Branches:
  refs/heads/master 03b1e86bd -> e6f8833b9


Allow commas in the input of bytes and IOPS when editing a storage pool


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/e6f8833b
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/e6f8833b
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/e6f8833b

Branch: refs/heads/master
Commit: e6f8833b95f53d7ad5c9f5a05853338626288e88
Parents: 03b1e86
Author: Mike Tutkowski <mike.tutkowski@solidfire.com>
Authored: Fri Jun 27 21:00:54 2014 -0600
Committer: Mike Tutkowski <mike.tutkowski@solidfire.com>
Committed: Mon Jun 30 10:39:21 2014 -0600

----------------------------------------------------------------------
 ui/scripts/system.js | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/e6f8833b/ui/scripts/system.js
----------------------------------------------------------------------
diff --git a/ui/scripts/system.js b/ui/scripts/system.js
index c5aea92..9012580 100644
--- a/ui/scripts/system.js
+++ b/ui/scripts/system.js
@@ -16255,11 +16255,15 @@
                                     array1.push("&tags=" + todb(args.data.tags));
                                     
                                     if (args.data.disksizetotal != null && args.data.disksizetotal.length
> 0) {
-                                        array1.push("&capacitybytes=" + cloudStack.converters.toBytes(args.data.disksizetotal));
+                                        var diskSizeTotal = args.data.disksizetotal.split(",").join("");
+
+                                        array1.push("&capacitybytes=" + cloudStack.converters.toBytes(diskSizeTotal));
                                     }
 
                                     if (args.data.capacityiops != null && args.data.capacityiops.length
> 0) {
-                                        array1.push("&capacityiops=" + args.data.capacityiops);
+                                        var capacityIops = args.data.capacityiops.split(",").join("");
+
+                                        array1.push("&capacityiops=" + capacityIops);
                                     }
 
                                     $.ajax({


Mime
View raw message