mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
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:
parent
aa3ae45e6b
commit
fa1696e3e6
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user