diff options
author | Endi S. Dewata <edewata@redhat.com> | 2011-06-07 20:48:20 -0500 |
---|---|---|
committer | Adam Young <ayoung@redhat.com> | 2011-06-13 09:23:29 -0400 |
commit | 9704adfe44c915de97f416c18bcaeabea2c927ba (patch) | |
tree | 92fc1e3eb8d3c4816c88750facedd52511ff7ea9 /install/ui/details.js | |
parent | d2b483cbb3ca15a68115cf32cfaf89572259914e (diff) | |
download | freeipa-9704adfe44c915de97f416c18bcaeabea2c927ba.tar.gz freeipa-9704adfe44c915de97f416c18bcaeabea2c927ba.tar.xz freeipa-9704adfe44c915de97f416c18bcaeabea2c927ba.zip |
Fixed resizing issues.
The UI has been modified to fix some resizing issues:
Previously the height of facet content was roughly calculated using
resize(). Now the height can be more accurately defined in CSS.
Previously the UI width was fixed. The HTML layout and background
images have been modified to support horizontal expansion if needed.
Diffstat (limited to 'install/ui/details.js')
-rw-r--r-- | install/ui/details.js | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/install/ui/details.js b/install/ui/details.js index 237de6024..c0b560cd6 100644 --- a/install/ui/details.js +++ b/install/ui/details.js @@ -407,8 +407,8 @@ IPA.details_facet = function(spec) { that.create_content = function(container) { - var details = $('<div/>', { - 'name': 'details' + that.content = $('<div/>', { + 'class': 'details-content' }).appendTo(container); var sections = that.sections.values; @@ -418,7 +418,7 @@ IPA.details_facet = function(spec) { var header = $('<h2/>', { name: section.name, title: section.label - }).appendTo(details); + }).appendTo(that.content); var icon = $('<span/>', { name: 'icon', @@ -432,7 +432,7 @@ IPA.details_facet = function(spec) { var div = $('<div/>', { name: section.name, 'class': 'details-section' - }).appendTo(details); + }).appendTo(that.content); header.click(function(section, div) { return function() { @@ -443,25 +443,26 @@ IPA.details_facet = function(spec) { section.create(div); - details.append('<hr/>'); + if (i < sections.length-1) { + that.content.append('<hr/>'); + } } - - that.resize(); + $('<span/>', { + name: 'summary', + 'class': 'details-summary' + }).appendTo(container); }; - that.setup = function(container) { that.facet_setup(container); - var details = $('div[name=details]', that.container); - var sections = that.sections.values; for (var i=0; i<sections.length; i++) { var section = sections[i]; - var div = $('div.details-section[name='+section.name+']', that.container); + var div = $('.details-section[name='+section.name+']', that.container); section.setup(div); } @@ -492,7 +493,7 @@ IPA.details_facet = function(spec) { var div = section.container; if (visible != div.is(":visible")) { - div.slideToggle('slow', that.resize); + div.slideToggle('slow'); } }; |