diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2013-03-28 15:50:59 +0100 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2013-05-06 16:22:20 +0200 |
commit | c0007704e8e8bea785dde410647c79501527eb72 (patch) | |
tree | c60edcaa4cf175462fbe212cc06c375aa5a1f57c /install/ui/src/freeipa/search.js | |
parent | 6f80b327314541de30c65176991d8225a16d4643 (diff) | |
download | freeipa-c0007704e8e8bea785dde410647c79501527eb72.tar.gz freeipa-c0007704e8e8bea785dde410647c79501527eb72.tar.xz freeipa-c0007704e8e8bea785dde410647c79501527eb72.zip |
Fix add/deletion of automember rule - caused by not setting facet for entity adder dialog
https://fedorahosted.org/freeipa/ticket/3236
Diffstat (limited to 'install/ui/src/freeipa/search.js')
-rw-r--r-- | install/ui/src/freeipa/search.js | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/install/ui/src/freeipa/search.js b/install/ui/src/freeipa/search.js index d8b9a4c18..54add5485 100644 --- a/install/ui/src/freeipa/search.js +++ b/install/ui/src/freeipa/search.js @@ -141,15 +141,14 @@ IPA.search_facet = function(spec, no_init) { dialog.open(that.container); }; - that.show_remove_dialog = function() { - + that.create_remove_dialog = function() { var values = that.get_selected_values(); var title; if (!values.length) { title = IPA.messages.dialogs.remove_empty; alert(title); - return; + return null; } var dialog = that.managed_entity.get_dialog('remove'); @@ -169,6 +168,12 @@ IPA.search_facet = function(spec, no_init) { dialog.set_values(values); + return dialog; + }; + + that.show_remove_dialog = function() { + + var dialog = that.create_remove_dialog(); dialog.open(that.container); }; @@ -268,6 +273,7 @@ IPA.search_facet = function(spec, no_init) { // methods that should be invoked by subclasses that.search_facet_refresh = that.refresh; that.search_facet_create_refresh_command = that.create_refresh_command; + that.search_facet_create_remove_dialog = that.create_remove_dialog; that.search_facet_create_header = that.create_header; that.search_facet_show = that.show; |