From 22b7d7e7d952d5c4928bfcc4b3d88fec9a1cdd31 Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Wed, 5 Sep 2012 16:55:57 +0200 Subject: Fixed problem while deleting entry with unsaved changes While deleting an entry it now resets a facet if there are unsaved changes. It prevents pop up of various error dialogs when UI tries to redirect to search page after successful delete. https://fedorahosted.org/freeipa/ticket/3047 --- install/ui/ipa.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'install/ui/ipa.js') diff --git a/install/ui/ipa.js b/install/ui/ipa.js index 7df4deed..23c9933d 100644 --- a/install/ui/ipa.js +++ b/install/ui/ipa.js @@ -2042,6 +2042,8 @@ IPA.confirm = function(msg) { IPA.notify_success = function(message) { + if (!message) return; // don't show undefined, null and such + function destroy_timeout() { if (IPA.notify_success.timeout) window.clearTimeout(IPA.notify_success.timeout); } -- cgit