From 690211adb52647efb6bb55919dec980d3660016e Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Wed, 8 Aug 2012 18:20:57 +0200 Subject: Update other facets on delete from search page When an object in search facet was deleted, other facets were not notified that they need to refresh. If one crated object with same pkey as deleted object and then navigated to it's details he could see old object's data. This notification was added. https://fedorahosted.org/freeipa/ticket/2618 --- install/ui/search.js | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'install/ui/search.js') diff --git a/install/ui/search.js b/install/ui/search.js index 845da57c..2c30b5b7 100644 --- a/install/ui/search.js +++ b/install/ui/search.js @@ -310,6 +310,7 @@ IPA.search_deleter_dialog = function(spec) { batch.on_success = function() { that.facet.refresh(); + that.facet.on_update.notify([],that.facet); that.close(); }; @@ -421,9 +422,7 @@ IPA.batch_items_action = function(spec) { var batch = IPA.batch_command({ name: entity.name + '_batch_'+ that.method, - on_success: function() { - facet.refresh(); - } + on_success: that.get_on_success(facet, on_success) }); for (var i=0; i