summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--install/ui/dialog.js14
1 files changed, 8 insertions, 6 deletions
diff --git a/install/ui/dialog.js b/install/ui/dialog.js
index cfddd519..c3efc25a 100644
--- a/install/ui/dialog.js
+++ b/install/ui/dialog.js
@@ -186,7 +186,10 @@ IPA.dialog = function(spec) {
'modal': true,
'width': that.width,
'height': that.height,
- 'buttons': that.buttons
+ 'buttons': that.buttons,
+ close: function(event, ui) {
+ that.close();
+ }
});
}
);
@@ -200,7 +203,10 @@ IPA.dialog = function(spec) {
'modal': true,
'width': that.width,
'height': that.height,
- 'buttons': that.buttons
+ 'buttons': that.buttons,
+ close: function(event, ui) {
+ that.close();
+ }
});
}
};
@@ -486,10 +492,6 @@ IPA.adder_dialog = function (spec) {
return that.selected_table.save();
};
- that.close = function() {
- that.container.dialog('close');
- };
-
that.adder_dialog_init = that.init;
that.adder_dialog_create = that.create;
that.adder_dialog_setup = that.setup;