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/dns.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/dns.js')
-rw-r--r-- | install/ui/dns.js | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/install/ui/dns.js b/install/ui/dns.js index 0115a311..ea09e227 100644 --- a/install/ui/dns.js +++ b/install/ui/dns.js @@ -638,9 +638,13 @@ IPA.dnsrecord_redirection_dialog = function(spec) { }).appendTo(that.container); }; - that.add_button(IPA.messages.buttons.ok, function() { - that.close(); - IPA.nav.show_page('dnszone','default'); + that.create_button({ + name: 'ok', + label: IPA.messages.buttons.ok, + click: function() { + that.close(); + IPA.nav.show_page('dnszone','default'); + } }); return that; }; |