summaryrefslogtreecommitdiffstats
path: root/install/ui/dialog.js
diff options
context:
space:
mode:
Diffstat (limited to 'install/ui/dialog.js')
-rw-r--r--install/ui/dialog.js48
1 files changed, 13 insertions, 35 deletions
diff --git a/install/ui/dialog.js b/install/ui/dialog.js
index 5245ba92c..ada30b0f4 100644
--- a/install/ui/dialog.js
+++ b/install/ui/dialog.js
@@ -32,7 +32,6 @@ IPA.dialog = function(spec) {
that.name = spec.name;
that.title = spec.title;
- that.template = spec.template;
that._entity_name = spec.entity_name;
that.width = spec.width || 400;
@@ -254,40 +253,19 @@ IPA.dialog = function(spec) {
container.append(that.container);
}
- if (that.template) {
- var template = IPA.get_template(that.template);
- that.container.load(
- template,
- function(data, text_status, xhr) {
- that.setup();
- that.container.dialog({
- 'title': that.title,
- 'modal': true,
- 'width': that.width,
- 'height': that.height,
- 'buttons': that.buttons,
- close: function(event, ui) {
- that.close();
- }
- });
- }
- );
-
- } else {
- that.create();
- that.setup();
-
- that.container.dialog({
- 'title': that.title,
- 'modal': true,
- 'width': that.width,
- 'height': that.height,
- 'buttons': that.buttons,
- close: function(event, ui) {
- that.close();
- }
- });
- }
+ that.create();
+ that.setup();
+
+ that.container.dialog({
+ 'title': that.title,
+ 'modal': true,
+ 'width': that.width,
+ 'height': that.height,
+ 'buttons': that.buttons,
+ close: function(event, ui) {
+ that.close();
+ }
+ });
};
that.option = function(name, value) {