fix revealing module and jquery3 of 2fa-modal

This commit is contained in:
Jakob Schrettenbrunner 2017-03-03 23:42:58 +01:00
parent 2efd6865e3
commit b91e3d95f8

View file

@ -37,7 +37,7 @@ var TwoFactorModal = (function () {
}).done(function (data) {
var image = new Image();
image.src = data.qrImage;
$(image).load(function () {
$(image).on('load', function () {
$('#hide_img_load').slideUp(function () {
$('#qr_image_insert').attr('src', image.src).slideDown();
});
@ -85,7 +85,6 @@ var TwoFactorModal = (function () {
bindListeners();
}
}
});
})();
TwoFactorModal.init();