diff options
author | Endi S. Dewata <edewata@redhat.com> | 2011-04-07 16:14:58 -0500 |
---|---|---|
committer | Endi Sukma Dewata <edewata@people01.fedoraproject.org> | 2011-04-11 16:03:30 +0000 |
commit | f0f83a862eee908c308c25561a18f8b1e218c081 (patch) | |
tree | 3060f7656e414b1e41e75fe442726f8b36cb825d /install/ui/details.js | |
parent | 960e730f3eebfa4609461bd2cb6506bc7f80741b (diff) | |
download | freeipa-f0f83a862eee908c308c25561a18f8b1e218c081.tar.gz freeipa-f0f83a862eee908c308c25561a18f8b1e218c081.tar.xz freeipa-f0f83a862eee908c308c25561a18f8b1e218c081.zip |
Refactored action panel and client area.
To improve code readability and extensibility the containers for action
panel and client area are now created in IPA.entity.setup(). The 'client area'
has been renamed into 'content'. The IPA.facet.create() has been renamed to
IPA.facet.create_content().
Diffstat (limited to 'install/ui/details.js')
-rw-r--r-- | install/ui/details.js | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/install/ui/details.js b/install/ui/details.js index 40dd6d4f8..794e19fd2 100644 --- a/install/ui/details.js +++ b/install/ui/details.js @@ -266,7 +266,7 @@ IPA.details_facet = function(spec) { that.label = ( IPA.messages && IPA.messages.facets && IPA.messages.facets.details) || spec.label; that.is_dirty = spec.is_dirty || is_dirty; - that.create = spec.create || create; + that.create_content = spec.create_content || create_content; that.setup = spec.setup || setup; that.load = spec.load || load; that.update = spec.update || IPA.details_update; @@ -323,9 +323,7 @@ IPA.details_facet = function(spec) { } }; - function create(container) { - - container.attr('title', that.entity_name); + function create_content(container) { var label = IPA.metadata.objects[that.entity_name].label; @@ -338,7 +336,7 @@ IPA.details_facet = function(spec) { appendTo(container); var details = $('<div/>', { - 'class': 'content' + 'name': 'details' }).appendTo(container); $('<a/>', { @@ -430,7 +428,7 @@ IPA.details_facet = function(spec) { }); button.replaceWith(that.update_button); - var details = $('div.content', that.container); + var details = $('div[name=details]', that.container); var expand_all = $('a[name=expand_all]', details); expand_all.click(function() { @@ -528,7 +526,7 @@ IPA.details_facet = function(spec) { } that.details_facet_init = that.init; - that.details_facet_create = that.create; + that.details_facet_create_content = that.create_content; that.details_facet_load = that.load; return that; |