diff options
author | Endi S. Dewata <edewata@redhat.com> | 2011-07-21 02:54:07 -0500 |
---|---|---|
committer | Adam Young <ayoung@redhat.com> | 2011-07-21 11:47:57 -0400 |
commit | 4ff959f55d4aa0a6a832821ed19ecbb9a05dbbbf (patch) | |
tree | 5b34f511d3be1e86a2fb69259e958d9d3b99c01c /install/ui/details.js | |
parent | b5fe1e8f615271f4f71826b83e51f5e3abd277a6 (diff) | |
download | freeipa-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/details.js')
-rw-r--r-- | install/ui/details.js | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/install/ui/details.js b/install/ui/details.js index 82804b538..45ffa6f16 100644 --- a/install/ui/details.js +++ b/install/ui/details.js @@ -37,7 +37,6 @@ IPA.details_section = function(spec) { that.name = spec.name || ''; that.label = spec.label || ''; - that.template = spec.template; that._entity_name = spec.entity_name; that.fields = $.ordered_map(); @@ -105,8 +104,6 @@ IPA.details_section = function(spec) { that.create = function(container) { - if (that.template) return; - var fields = that.fields.values; for (var i=0; i<fields.length; i++) { var field = fields[i]; @@ -123,8 +120,6 @@ IPA.details_section = function(spec) { that.container = container; - if (that.template) return; - var fields = that.fields.values; for (var i=0; i<fields.length; i++) { var field = fields[i]; @@ -139,23 +134,6 @@ IPA.details_section = function(spec) { that.record = record; var fields = that.fields.values; - - if (that.template) { - var template = IPA.get_template(that.template); - this.container.load( - template, - function(data, text_status, xhr) { - for (var i=0; i<fields.length; i++) { - var field = fields[i]; - var span = $('span[name='+field.name+']', this.container).first(); - field.setup(span); - field.load(record); - } - } - ); - return; - } - for (var j=0; j<fields.length; j++) { var field = fields[j]; field.load(record); @@ -230,8 +208,6 @@ IPA.details_list_section = function(spec) { // do not call section_create() here - if (that.template) return; - var dl = $('<dl/>', { 'id': that.name, 'class': 'entryattrs' |