summaryrefslogtreecommitdiffstats
path: root/install/ui/src/freeipa/otptoken.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/otptoken.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/otptoken.js')
-rw-r--r--install/ui/src/freeipa/otptoken.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/install/ui/src/freeipa/otptoken.js b/install/ui/src/freeipa/otptoken.js
index ae6c47c46..99dedd94b 100644
--- a/install/ui/src/freeipa/otptoken.js
+++ b/install/ui/src/freeipa/otptoken.js
@@ -398,6 +398,7 @@ otptoken.qr_widget = function(spec) {
that.qrcode.makeCode(that.text);
that.uri_control.text(that.text);
that.div_link_control.prop('href', that.text);
+ that.on_value_changed();
};
/**