summaryrefslogtreecommitdiffstats
path: root/install/ui/facet.js
diff options
context:
space:
mode:
Diffstat (limited to 'install/ui/facet.js')
-rw-r--r--install/ui/facet.js12
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;
};