summaryrefslogtreecommitdiffstats
path: root/install/ui/dialog.js
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2011-07-21 02:54:07 -0500
committerAdam Young <ayoung@redhat.com>2011-07-21 11:47:57 -0400
commit4ff959f55d4aa0a6a832821ed19ecbb9a05dbbbf (patch)
tree5b34f511d3be1e86a2fb69259e958d9d3b99c01c /install/ui/dialog.js
parentb5fe1e8f615271f4f71826b83e51f5e3abd277a6 (diff)
downloadfreeipa-4ff959f55d4aa0a6a832821ed19ecbb9a05dbbbf.tar.gz
freeipa-4ff959f55d4aa0a6a832821ed19ecbb9a05dbbbf.tar.xz
freeipa-4ff959f55d4aa0a6a832821ed19ecbb9a05dbbbf.zip
Removed custom layouts using HTML templates.
The code for supporting custom layouts using HTML templates has been removed. If it's needed again in the future the code can be restored. Ticket #1501
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) {