diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2012-09-12 13:41:39 +0200 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2013-01-07 10:53:58 +0100 |
commit | 16663cb215fad4e20169a97231d94d3ee9c21adf (patch) | |
tree | f91737663c34fbb2a8314e66632ac38593894a3a /install/ui/facet.js | |
parent | cbb12c7cc56ba8d9ee48d261fc86ddef5e323c34 (diff) | |
download | freeipa.git-16663cb215fad4e20169a97231d94d3ee9c21adf.tar.gz freeipa.git-16663cb215fad4e20169a97231d94d3ee9c21adf.tar.xz freeipa.git-16663cb215fad4e20169a97231d94d3ee9c21adf.zip |
Make confirm_dialog a base class of revoke and restore certificate dialogs
https://fedorahosted.org/freeipa/ticket/3035
Diffstat (limited to 'install/ui/facet.js')
-rw-r--r-- | install/ui/facet.js | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/install/ui/facet.js b/install/ui/facet.js index 372022db..25d48bf6 100644 --- a/install/ui/facet.js +++ b/install/ui/facet.js @@ -1323,12 +1323,12 @@ IPA.action = function(spec) { if (that.confirm_dialog) { - var dialog = IPA.build(that.confirm_dialog); - dialog.message = that.get_confirm_message(facet); - dialog.on_ok = function () { + that.dialog = IPA.build(that.confirm_dialog); + that.update_confirm_dialog(facet); + that.dialog.on_ok = function () { that.execute_action(facet, on_success, on_error); }; - dialog.open(); + that.dialog.open(); } else { var msg = that.get_confirm_message(facet); confirmed = IPA.confirm(msg); @@ -1340,6 +1340,10 @@ IPA.action = function(spec) { that.execute_action(facet, on_success, on_error); }; + that.update_confirm_dialog = function(facet) { + that.dialog.message = that.get_confirm_message(facet); + }; + that.get_confirm_message = function(facet) { return that.confirm_msg; }; |