diff options
author | Endi S. Dewata <edewata@redhat.com> | 2011-05-27 12:04:20 -0500 |
---|---|---|
committer | Adam Young <ayoung@redhat.com> | 2011-05-27 21:38:26 -0400 |
commit | 6304d9173c16e082d6844b329987680b85086cb7 (patch) | |
tree | 957c54e65b73f9f75f3e789f7f4804df1ef89c14 /install/ui/ipa.js | |
parent | e91aa64d4ae6d85284c3b062f5ba03a8da27f547 (diff) | |
download | freeipa-6304d9173c16e082d6844b329987680b85086cb7.tar.gz freeipa-6304d9173c16e082d6844b329987680b85086cb7.tar.xz freeipa-6304d9173c16e082d6844b329987680b85086cb7.zip |
Fixed problem deleting value in text field.
Previously deleting a value in a text field did not work because
the field is not included in the modify operation when the value
is empty. The details facet's update() method has been modified
to update only dirty fields.
The section lists in details facet and dialog have been converted
into ordered maps.
Ticket #1256
Diffstat (limited to 'install/ui/ipa.js')
-rw-r--r-- | install/ui/ipa.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/install/ui/ipa.js b/install/ui/ipa.js index 7fd784b54..9f75f4936 100644 --- a/install/ui/ipa.js +++ b/install/ui/ipa.js @@ -214,6 +214,15 @@ IPA.command = function(spec) { that.options[name] = value; }; + that.add_option = function(name, value) { + var values = that.options[name]; + if (!values) { + values = []; + that.options[name] = values; + } + values.push(value); + }; + that.get_option = function(name) { return that.options[name]; }; |