summaryrefslogtreecommitdiffstats
path: root/install/ui/sudocmd.js
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2011-02-08 15:41:24 -0600
committerAdam Young <ayoung@redhat.com>2011-02-09 19:46:49 -0500
commit8d597dcbb03ca70a342f470e0229c9934f75cb16 (patch)
tree7311deb7976b677efba19d864e893d8406aebd0f /install/ui/sudocmd.js
parent25abf07360ea6824f3584edd847e080e6fdca981 (diff)
downloadfreeipa-8d597dcbb03ca70a342f470e0229c9934f75cb16.tar.gz
freeipa-8d597dcbb03ca70a342f470e0229c9934f75cb16.tar.xz
freeipa-8d597dcbb03ca70a342f470e0229c9934f75cb16.zip
Moved add dialog into search facet.
Previously the add dialog is added into entity. The dialog is only used by the search facet, so it's now moved into the search facet.
Diffstat (limited to 'install/ui/sudocmd.js')
-rw-r--r--install/ui/sudocmd.js11
1 files changed, 6 insertions, 5 deletions
diff --git a/install/ui/sudocmd.js b/install/ui/sudocmd.js
index c254452ff..88147b786 100644
--- a/install/ui/sudocmd.js
+++ b/install/ui/sudocmd.js
@@ -30,16 +30,17 @@ IPA.entity_factories.sudocmd = function () {
that.init = function() {
+ var facet = IPA.sudocmd_search_facet({
+ 'name': 'search',
+ 'label': 'Search'
+ });
+
var dialog = IPA.sudocmd_add_dialog({
'name': 'add',
'title': 'Add New SUDO Command'
});
- that.add_dialog(dialog);
+ facet.dialog(dialog);
- var facet = IPA.sudocmd_search_facet({
- 'name': 'search',
- 'label': 'Search'
- });
that.add_facet(facet);
facet = IPA.sudocmd_details_facet({