summaryrefslogtreecommitdiffstats
path: root/install/ui/sudorule.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/sudorule.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/sudorule.js')
-rw-r--r--install/ui/sudorule.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/install/ui/sudorule.js b/install/ui/sudorule.js
index 5f062e73..b25a9dd3 100644
--- a/install/ui/sudorule.js
+++ b/install/ui/sudorule.js
@@ -282,12 +282,10 @@ IPA.sudorule_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;