mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
multiEdit: support hiding fields dynamically via dataProvider
If 'hideFields' array is passed to .success(), then hide the field IDs specified.
This commit is contained in:
parent
f7177b496f
commit
2ffc381ea1
@ -2763,7 +2763,8 @@
|
||||
});
|
||||
|
||||
args.response.success({
|
||||
data: loadBalancerData
|
||||
data: loadBalancerData,
|
||||
//hideFields: ['autoScale']
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
@ -1024,6 +1024,11 @@
|
||||
$multi.find('th.add-user, td.add-user').detach();
|
||||
$multiForm.find('tbody').detach();
|
||||
}
|
||||
if (args.hideFields) {
|
||||
$(args.hideFields).each(function() {
|
||||
$multi.find('th.' + this + ',td.' + this).hide();
|
||||
});
|
||||
}
|
||||
|
||||
_medit.refreshItemWidths($multi);
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user