mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-25 08:21:05 -06:00
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>
This commit is contained in:
parent
f74ab3cba2
commit
c644b47492
@ -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 });
|
||||
};
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user