summaryrefslogtreecommitdiffstats
path: root/install/ui/src/freeipa/rule.js
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2014-03-19 17:06:19 +0100
committerPetr Vobornik <pvoborni@redhat.com>2014-04-03 12:40:37 +0200
commitdf18a3bc040299dae2dc573667ec7ee2db45a8e5 (patch)
tree3c17bb0df6c2f7ad1d89bd323ee601e2535f978c /install/ui/src/freeipa/rule.js
parentaadde0f849bc7f129ef5bfdd96391ebeee273829 (diff)
downloadfreeipa-df18a3bc040299dae2dc573667ec7ee2db45a8e5.tar.gz
freeipa-df18a3bc040299dae2dc573667ec7ee2db45a8e5.tar.xz
freeipa-df18a3bc040299dae2dc573667ec7ee2db45a8e5.zip
webui: change widget updated event into value change event
This change allow us to use proper two way binding between a field and a widget. In previous implementation field was not changed if something changed the value of a widget in 'update'. Now listeners are notified when the widget value is changed by: calling 'update', 'set_value' or by user change. Reviewed-By: Adam Misnyovszki <amisnyov@redhat.com>
Diffstat (limited to 'install/ui/src/freeipa/rule.js')
-rw-r--r--install/ui/src/freeipa/rule.js1
1 files changed, 0 insertions, 1 deletions
diff --git a/install/ui/src/freeipa/rule.js b/install/ui/src/freeipa/rule.js
index c7bc8b0e9..9109e06e0 100644
--- a/install/ui/src/freeipa/rule.js
+++ b/install/ui/src/freeipa/rule.js
@@ -50,7 +50,6 @@ IPA.rule_details_widget = function(spec) {
that.widgets.add_widget(that.enable_radio);
that.enable_radio.value_changed.attach(that.on_enable_radio_changed);
- that.enable_radio.updated.attach(that.on_enable_radio_changed);
};
that.on_enable_radio_changed = function() {