incubator-cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mc...@apache.org
Subject [4/27] git commit: refs/heads/vim51_win8 - Providing invalid values for gateway, netmask etc in the zoneWizard blocks the VLAN container to load , throwing an error
Date Wed, 06 Feb 2013 05:45:21 GMT
Providing invalid values for gateway, netmask etc in the zoneWizard blocks the VLAN container
to load , throwing an error


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

Branch: refs/heads/vim51_win8
Commit: c61156e9651d42295a5dca554af2de73cd442ec7
Parents: 9a44ecf
Author: Brian Federle <brian.federle@citrix.com>
Authored: Tue Feb 5 11:47:20 2013 +0530
Committer: Pranav Saxena <pranav.saxena@citrix.com>
Committed: Tue Feb 5 11:47:20 2013 +0530

----------------------------------------------------------------------
 ui/scripts/ui/utils.js |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/c61156e9/ui/scripts/ui/utils.js
----------------------------------------------------------------------
diff --git a/ui/scripts/ui/utils.js b/ui/scripts/ui/utils.js
index 567f566..7a6fb2f 100644
--- a/ui/scripts/ui/utils.js
+++ b/ui/scripts/ui/utils.js
@@ -23,7 +23,7 @@
 
     $($form.serializeArray()).each(function() {
       var dataItem = data[this.name];
-      var value = this.value;
+      var value = this.value.toString();
 
       if (options.escapeSlashes) {
         value = value.replace(/\//g, '__forwardSlash__');
@@ -31,9 +31,9 @@
 
       if (!dataItem) {
         data[this.name] = value;
-      } else if (dataItem && !$(dataItem).size()) {
+      } else if (dataItem && !$.isArray(dataItem)) {
         data[this.name] = [dataItem, value];
-      } else {
+      } else if($.isArray(dataItem)){
         dataItem.push(value);
       }
     });


Mime
View raw message