summaryrefslogtreecommitdiffstats
path: root/install/ui/hbacrule.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/hbacrule.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/hbacrule.js')
-rw-r--r--install/ui/hbacrule.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/install/ui/hbacrule.js b/install/ui/hbacrule.js
index 004c9c5d0..f55f233cc 100644
--- a/install/ui/hbacrule.js
+++ b/install/ui/hbacrule.js
@@ -423,12 +423,10 @@ IPA.hbacrule_details_facet = function (spec) {
for (var i=0; i<that.sections.length; i++) {
var section = that.sections[i];
- var div = $('#'+that.entity_name+'-'+that.name+'-'+section.name, that.container);
-
for (var j=0; j<section.fields.length; j++) {
var field = section.fields[j];
- var span = $('span[name='+field.name+']', div).first();
+ var span = $('span[name='+field.name+']', section.container).first();
var values = field.save();
if (!values) continue;