From 69e77212ea428f79742b9ff0452ef19d74cc76d4 Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Thu, 2 Dec 2010 22:12:59 -0600 Subject: 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. --- install/static/widget.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'install/static/widget.js') diff --git a/install/static/widget.js b/install/static/widget.js index 02759992..97cd7002 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() { -- cgit