CS-16822: multi-edit UI: Fix blank fields on add item

When adding an item, show all returned fields if noSelect is
true. This prevents hidden conditional form fields from having their
row data hidden, such as if an ICMP rule is added and the TCP
start/end port form fields are hidden due to space constraints.
This commit is contained in:
Brian Federle 2012-11-16 08:37:59 -08:00
parent aa3ae45e6b
commit fa1696e3e6

View File

@ -104,9 +104,12 @@
if (!itemData) itemData = [{}];
if ($multi.find('th,td').filter(function() {
return $(this).attr('rel') == fieldName;
}).is(':hidden')) return true;
if (!options.noSelect &&
$multi.find('th,td').filter(function() {
return $(this).attr('rel') == fieldName;
}).is(':hidden')) {
return true;
}
if (!field.isPassword) {
if (field.edit) {