summaryrefslogtreecommitdiffstats
path: root/install/ui/dns.js
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2012-09-13 11:24:41 +0200
committerPetr Vobornik <pvoborni@redhat.com>2013-01-07 10:53:58 +0100
commitb33f6acfa87587f30822680abe8721f376737022 (patch)
tree6e250a145f8232a7a847bb600a0747d5707d7339 /install/ui/dns.js
parentc23dd23219d224de8844df07f7cf6564f8abc98f (diff)
downloadfreeipa.git-b33f6acfa87587f30822680abe8721f376737022.tar.gz
freeipa.git-b33f6acfa87587f30822680abe8721f376737022.tar.xz
freeipa.git-b33f6acfa87587f30822680abe8721f376737022.zip
Make confirm_dialog a base class for message_dialog
https://fedorahosted.org/freeipa/ticket/3035
Diffstat (limited to 'install/ui/dns.js')
-rw-r--r--install/ui/dns.js14
1 files changed, 5 insertions, 9 deletions
diff --git a/install/ui/dns.js b/install/ui/dns.js
index fceb3e74..d08f4140 100644
--- a/install/ui/dns.js
+++ b/install/ui/dns.js
@@ -1258,7 +1258,7 @@ IPA.dnsrecord_redirection_dialog = function(spec) {
spec = spec || {};
spec.title = spec.title || IPA.messages.dialogs.redirection;
- var that = IPA.dialog(spec);
+ var that = IPA.message_dialog(spec);
that.create = function() {
$('<p/>', {
@@ -1269,14 +1269,10 @@ IPA.dnsrecord_redirection_dialog = function(spec) {
}).appendTo(that.container);
};
- that.create_button({
- name: 'ok',
- label: IPA.messages.buttons.ok,
- click: function() {
- that.close();
- IPA.nav.show_page('dnszone','default');
- }
- });
+ that.on_ok = function() {
+ IPA.nav.show_page('dnszone','default');
+ };
+
return that;
};