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
This commit is contained in:
Endi S. Dewata
2011-07-21 02:54:07 -05:00
committed by Adam Young
parent b5fe1e8f61
commit 4ff959f55d
22 changed files with 83 additions and 1171 deletions

View File

@@ -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();
}
});
}
);
that.create();
that.setup();
} 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.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) {