From 9363260ca0d10cfeff902f7241c731680074550d Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Thu, 18 Aug 2011 13:46:44 +0200 Subject: Uncheck checkboxes in association after deletion https://fedorahosted.org/freeipa/ticket/1639 --- install/ui/association.js | 2 ++ install/ui/search.js | 21 ++++++++++++--------- install/ui/sudo.js | 1 + install/ui/widget.js | 29 ++++++++++++++++++++--------- 4 files changed, 35 insertions(+), 18 deletions(-) (limited to 'install') diff --git a/install/ui/association.js b/install/ui/association.js index 37bc95fda..4ee4e72ce 100644 --- a/install/ui/association.js +++ b/install/ui/association.js @@ -457,6 +457,7 @@ IPA.association_table_widget = function (spec) { that.load = function(result) { that.values = result[that.name] || []; that.reset(); + that.unselect_all(); }; that.update = function() { @@ -1107,6 +1108,7 @@ IPA.association_facet = function (spec) { that.table.current_page = 1; that.table.refresh(); + that.table.unselect_all(); }; that.refresh = function() { diff --git a/install/ui/search.js b/install/ui/search.js index bee55c067..454ecf453 100644 --- a/install/ui/search.js +++ b/install/ui/search.js @@ -86,6 +86,17 @@ IPA.search_facet = function(spec) { that.table.refresh = function() { that.refresh(); }; + + that.table.load = function(result) { + that.table.empty(); + + for (var i = 0; i