From c644b47492e22370bc71f57e5ac46b50f9b4e247 Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Tue, 15 Apr 2014 09:47:21 +0200 Subject: 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 --- install/ui/src/freeipa/otptoken.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'install/ui') 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 }); }; /** -- cgit