summaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2014-04-15 09:47:21 +0200
committerPetr Viktorin <pviktori@redhat.com>2014-04-17 16:34:09 +0200
commitc644b47492e22370bc71f57e5ac46b50f9b4e247 (patch)
treeeab4469b83dfd48589efe472cedb7ba6a2e5e1c2 /install
parentf74ab3cba2b02e4726519e602f7de4fc86fca2d1 (diff)
downloadfreeipa-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')
-rw-r--r--install/ui/src/freeipa/otptoken.js2
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 });
};
/**