diff options
author | Endi S. Dewata <edewata@redhat.com> | 2011-09-28 15:56:25 -0500 |
---|---|---|
committer | Endi S. Dewata <edewata@redhat.com> | 2011-09-29 16:57:19 +0000 |
commit | f99ab781ea33f0d7ca6df26090cd99f9315454ac (patch) | |
tree | 548558b589a656503eeb50aa090eed3a45b6f8e4 /install/ui/hbac.js | |
parent | ecb58275e30f215143c57bdf96094103c8fda7ba (diff) | |
download | freeipa.git-f99ab781ea33f0d7ca6df26090cd99f9315454ac.tar.gz freeipa.git-f99ab781ea33f0d7ca6df26090cd99f9315454ac.tar.xz freeipa.git-f99ab781ea33f0d7ca6df26090cd99f9315454ac.zip |
Disable enroll button if nothing selected.
A new IPA.dialog_button class has been added to encapsulate the
buttons in the dialog box so they can be managed more easily.
The adder dialog has been modified to disable the enroll button if
there is no entries selected.
Ticket #1856
Diffstat (limited to 'install/ui/hbac.js')
-rw-r--r-- | install/ui/hbac.js | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/install/ui/hbac.js b/install/ui/hbac.js index f4f262c8..c4b4877e 100644 --- a/install/ui/hbac.js +++ b/install/ui/hbac.js @@ -580,13 +580,21 @@ IPA.hbac_deny_warning_dialog = function(container) { })).appendTo(dialog.container); }; - dialog.add_button('Edit HBAC Rules', function() { - dialog.close(); - IPA.nav.show_page('hbacrule', 'search'); + dialog.create_button({ + name: 'edit', + label: 'Edit HBAC Rules', + click: function() { + dialog.close(); + IPA.nav.show_page('hbacrule', 'search'); + } }); - dialog.add_button('Ignore for now', function() { - dialog.close(); + dialog.create_button({ + name: 'ignore', + label: 'Ignore for now', + click: function() { + dialog.close(); + } }); dialog.open(); |