Providing invalid values for gateway, netmask etc in the zoneWizard blocks the VLAN container to load , throwing an error

This commit is contained in:
Brian Federle 2013-02-05 11:47:20 +05:30 committed by Pranav Saxena
parent 9a44ecf777
commit c61156e965
1 changed files with 3 additions and 3 deletions

View File

@ -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);
}
});