diff options
author | Endi S. Dewata <edewata@redhat.com> | 2011-05-16 22:23:20 -0500 |
---|---|---|
committer | Adam Young <ayoung@redhat.com> | 2011-05-20 12:11:47 -0400 |
commit | 46137fdf898690836ae61e54b1cb2711492287f3 (patch) | |
tree | b64b936fca3f738bdd19862113d8005b72e4eb82 /install/ui/sudo.js | |
parent | 00abd47de4d3238295cbe5dc30210b913c0f07a1 (diff) | |
download | freeipa-46137fdf898690836ae61e54b1cb2711492287f3.tar.gz freeipa-46137fdf898690836ae61e54b1cb2711492287f3.tar.xz freeipa-46137fdf898690836ae61e54b1cb2711492287f3.zip |
jQuery ordered map.
The ordered map is a jQuery extension for creating a collection which can
be accessed both as an ordered list and as a map. This collection can be
used to store various objects including entities, fields, columns, and
dialogs. A test suite for this class has been added as well.
Ticket #1232
Diffstat (limited to 'install/ui/sudo.js')
-rw-r--r-- | install/ui/sudo.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/install/ui/sudo.js b/install/ui/sudo.js index 0f830aca..e9e978be 100644 --- a/install/ui/sudo.js +++ b/install/ui/sudo.js @@ -450,8 +450,9 @@ IPA.sudorule_details_facet = function (spec) { for (var i=0; i<that.sections.length; i++) { var section = that.sections[i]; - for (var j=0; j<section.fields.length; j++) { - var field = section.fields[j]; + var section_fields = section.fields.values; + for (var j=0; j<section_fields.length; j++) { + var field = section_fields[j]; var span = $('span[name='+field.name+']', section.container).first(); var values = field.save(); @@ -1097,7 +1098,8 @@ IPA.sudo.rule_association_adder_dialog = function (spec) { name: 'available' }); - that.available_table.set_columns(that.columns); + var columns = that.columns.values; + that.available_table.set_columns(columns); that.available_table.init(); @@ -1105,7 +1107,7 @@ IPA.sudo.rule_association_adder_dialog = function (spec) { name: 'selected' }); - that.selected_table.set_columns(that.columns); + that.selected_table.set_columns(columns); that.selected_table.init(); |