From ab667912cf19d17e749d13b1d9f428ab6ae55b93 Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Tue, 29 Nov 2011 13:36:07 +0100 Subject: Code cleanup of HBAC, Sudo rules https://fedorahosted.org/freeipa/ticket/1515 --- install/ui/association.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'install/ui/association.js') diff --git a/install/ui/association.js b/install/ui/association.js index 553966eb..7db91ef9 100644 --- a/install/ui/association.js +++ b/install/ui/association.js @@ -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(); -- cgit