You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by mt...@apache.org on 2014/06/30 18:40:59 UTC

git commit: updated refs/heads/master to e6f8833

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 <mi...@solidfire.com>
Authored: Fri Jun 27 21:00:54 2014 -0600
Committer: Mike Tutkowski <mi...@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({