(mvc) fix empty select boxes on form (forgot to send empty items)

This commit is contained in:
Ad Schellevis 2015-05-11 11:27:15 +02:00
parent 34c4099e8b
commit ee430b5a15

View File

@ -62,8 +62,8 @@ function getFormData(parent) {
if (tmp_str != "") tmp_str = tmp_str + ",";
tmp_str = tmp_str + $(this).val();
}
node[keyparts[i]] = tmp_str;
});
node[keyparts[i]] = tmp_str;
} else if ($(this).prop("type") == "checkbox") {
// checkbox input type
if ($(this).prop("checked")) {