diff options
author | Endi S. Dewata <edewata@redhat.com> | 2010-12-02 22:12:59 -0600 |
---|---|---|
committer | Adam Young <ayoung@redhat.com> | 2010-12-06 15:29:02 -0500 |
commit | 69e77212ea428f79742b9ff0452ef19d74cc76d4 (patch) | |
tree | 7e983cc373e099284743ff274e42cf0ac6ea8c19 /install/static/widget.js | |
parent | 10f3c0825bfdffa6035e78066001eb3bdc759143 (diff) | |
download | freeipa-69e77212ea428f79742b9ff0452ef19d74cc76d4.tar.gz freeipa-69e77212ea428f79742b9ff0452ef19d74cc76d4.tar.xz freeipa-69e77212ea428f79742b9ff0452ef19d74cc76d4.zip |
HBAC Service Groups adjustments
The association facet for HBAC Service Groups has been removed
and replaced with an association table in the details page.
The ipa_association_table_widget has been modified to support
multiple columns in the table itself and in the adder dialog.
The ipa_association_adder_dialog and ipa_association_facet have
been refactored.
The ipa_sudorule_association_widget and ipa_rule_association_widget
has been removed because their functionalities have been merged into
ipa_association_table_widget.
Diffstat (limited to 'install/static/widget.js')
-rwxr-xr-x | install/static/widget.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/install/static/widget.js b/install/static/widget.js index 02759992e..97cd70024 100755 --- a/install/static/widget.js +++ b/install/static/widget.js @@ -87,7 +87,7 @@ function ipa_widget(spec) { function clear() { } - that.is_dirty = function(container) { + that.is_dirty = function() { if (!that.values) return true; var values = that.save(); if (values.length != that.values.length) return true; @@ -100,7 +100,7 @@ function ipa_widget(spec) { that.set_values = function(values) { }; - that.reset = function(container) { + that.reset = function() { that.hide_undo(); that.set_values(that.values); }; @@ -327,7 +327,9 @@ function ipa_radio_widget(spec) { }; that.set_values = function(values) { - $('input[name="'+that.name+'"][value="'+values[0]+'"]', that.container).get(0).checked = true; + var input = $('input[name="'+that.name+'"][value="'+values[0]+'"]', that.container); + if (!input.length) return; + input.get(0).checked = true; }; that.clear = function() { |