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:58:20 +0000 |
commit | a60ee8b7810ed2dbe0affe91112c4d7c95394018 (patch) | |
tree | 0893fb094f3c250a24716e6e4aaa0f06b4d6c91f /install/ui/dns.js | |
parent | 91de76f8b13d4c4d121d7bf2593fe941d265eb4e (diff) | |
download | freeipa-a60ee8b7810ed2dbe0affe91112c4d7c95394018.tar.gz freeipa-a60ee8b7810ed2dbe0affe91112c4d7c95394018.tar.xz freeipa-a60ee8b7810ed2dbe0affe91112c4d7c95394018.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 f5f617383..18468519d 100644 --- a/install/ui/dns.js +++ b/install/ui/dns.js @@ -621,9 +621,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; }; |