diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2014-04-15 09:47:21 +0200 |
---|---|---|
committer | Petr Viktorin <pviktori@redhat.com> | 2014-04-17 16:34:09 +0200 |
commit | c644b47492e22370bc71f57e5ac46b50f9b4e247 (patch) | |
tree | eab4469b83dfd48589efe472cedb7ba6a2e5e1c2 /install/ui/src | |
parent | f74ab3cba2b02e4726519e602f7de4fc86fca2d1 (diff) | |
download | freeipa-c644b47492e22370bc71f57e5ac46b50f9b4e247.tar.gz freeipa-c644b47492e22370bc71f57e5ac46b50f9b4e247.tar.xz freeipa-c644b47492e22370bc71f57e5ac46b50f9b4e247.zip |
webui: fix OTP Token add regression
OTP Token add failed because of invalid function call. qr_widget doesn't
contain `on_value_changed` method since it inherits from `IPA.widget` and
not from `IPA.input_widget`.
Emitting the event was preserved for future possible usage.
https://fedorahosted.org/freeipa/ticket/4306
Reviewed-By: Adam Misnyovszki <amisnyov@redhat.com>
Diffstat (limited to 'install/ui/src')
-rw-r--r-- | install/ui/src/freeipa/otptoken.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/install/ui/src/freeipa/otptoken.js b/install/ui/src/freeipa/otptoken.js index 99dedd94b..cf14869ce 100644 --- a/install/ui/src/freeipa/otptoken.js +++ b/install/ui/src/freeipa/otptoken.js @@ -398,7 +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(); + that.emit('value-change', { source: that, value: val }); }; /** |