Code cleanup of HBAC, Sudo rules

https://fedorahosted.org/freeipa/ticket/1515
This commit is contained in:
Petr Vobornik
2011-11-29 13:36:07 +01:00
committed by Endi S. Dewata
parent fdee0892f1
commit ab667912cf
6 changed files with 1053 additions and 1214 deletions

View File

@@ -432,6 +432,7 @@ IPA.association_table_widget = function (spec) {
$('.action-button', that.table).addClass('action-button-disabled');
that.unselect_all();
}
that.enabled = enabled;
};
that.select_changed = function() {
@@ -483,11 +484,13 @@ IPA.association_table_widget = function (spec) {
that.load = function(result) {
that.values = result[that.name] || [];
that.reset();
that.update();
that.unselect_all();
};
that.update = function() {
that.update = function(values) {
if(values) that.values = values;
that.empty();