From 04325fbb4c64ee4aef6d8c9adf0ff95b8b653101 Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Fri, 22 Mar 2013 17:53:04 +0100 Subject: Nestable checkbox/radio widget New component: option_widget_base. It's not a regular widget but it share some of its characteristics. It should extend regular widget or it can be nested in itself alone. checkbox_widget, checkboxes_widget, radio_widget were modified to use it. Built as a prerequisite for: https://fedorahosted.org/freeipa/ticket/3404 --- install/ui/src/freeipa/rule.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'install/ui/src/freeipa/rule.js') diff --git a/install/ui/src/freeipa/rule.js b/install/ui/src/freeipa/rule.js index 888fd450..436e934c 100644 --- a/install/ui/src/freeipa/rule.js +++ b/install/ui/src/freeipa/rule.js @@ -43,7 +43,8 @@ IPA.rule_details_widget = function(spec) { that.enable_radio.value_changed.attach(that.on_enable_radio_changed); }; - that.on_enable_radio_changed = function(value) { + that.on_enable_radio_changed = function() { + var value = that.enable_radio.save(); if(value.length > 0) { var enabled = ('' === value[0]); for (var i=0; i