diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2014-03-19 17:06:19 +0100 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2014-04-03 12:40:37 +0200 |
commit | df18a3bc040299dae2dc573667ec7ee2db45a8e5 (patch) | |
tree | 3c17bb0df6c2f7ad1d89bd323ee601e2535f978c /install/ui/src/freeipa/service.js | |
parent | aadde0f849bc7f129ef5bfdd96391ebeee273829 (diff) | |
download | freeipa-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/service.js')
-rw-r--r-- | install/ui/src/freeipa/service.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/install/ui/src/freeipa/service.js b/install/ui/src/freeipa/service.js index bd1d3842b..b2f4c283f 100644 --- a/install/ui/src/freeipa/service.js +++ b/install/ui/src/freeipa/service.js @@ -333,8 +333,7 @@ IPA.service_provisioning_status_widget = function (spec) { that.update = function(values) { that.status = values && values.length ? values[0] : false; set_status(that.status ? 'valid' : 'missing'); - that.updated.notify([], that); - that.emit('update', { source: that }); + that.on_value_changed(); }; that.clear = function() { |