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:
Brian Federle 2012-08-09 15:51:56 -07:00 committed by Vijay Venkatachalam
parent f7177b496f
commit 2ffc381ea1
2 changed files with 7 additions and 1 deletions

View File

@ -2763,7 +2763,8 @@
});
args.response.success({
data: loadBalancerData
data: loadBalancerData,
//hideFields: ['autoScale']
});
}
});

View File

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