summaryrefslogtreecommitdiffstats
path: root/install/ui/dialog.js
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2011-02-10 16:10:53 -0600
committerAdam Young <ayoung@redhat.com>2011-02-17 14:57:21 -0500
commit49a5f14b4716125bb32232c115f45cceb83f8472 (patch)
treebd9fbf71d5f89ff9c3b3ba8abf9574f30eef001c /install/ui/dialog.js
parent1ea463eced90e25d353f8ff7c0012d9d0fc510b1 (diff)
downloadfreeipa-49a5f14b4716125bb32232c115f45cceb83f8472.tar.gz
freeipa-49a5f14b4716125bb32232c115f45cceb83f8472.tar.xz
freeipa-49a5f14b4716125bb32232c115f45cceb83f8472.zip
Added expand/collapse all.
A link has been added into the details page to expand/collapse all sections. Previously each section's <div> container is identified using a long ID. It is now identified using the section name.
Diffstat (limited to 'install/ui/dialog.js')
-rw-r--r--install/ui/dialog.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/install/ui/dialog.js b/install/ui/dialog.js
index 9d94786ae..535804426 100644
--- a/install/ui/dialog.js
+++ b/install/ui/dialog.js
@@ -139,7 +139,7 @@ IPA.dialog = function(spec) {
var section = that.sections[j];
var div = $('<div/>', {
- 'id': that.entity_name+'-'+that.name+'-'+section.name,
+ name: section.name,
'class': 'details-section'
}).appendTo(that.container);
@@ -161,7 +161,7 @@ IPA.dialog = function(spec) {
for (var j=0; j<that.sections.length; j++) {
var section = that.sections[j];
- var div = $('#'+that.entity_name+'-'+that.name+'-'+section.name,
+ var div = $('div.details-section[name='+section.name+']',
that.container);
section.setup(div);