Fix recaptha error

This commit is contained in:
Anton Ignatov 2019-03-01 12:58:31 +01:00
parent 1ef8108521
commit 1ae4a60f79

View file

@ -158,8 +158,12 @@
});
});
}).on('shown.bs.modal', function() {
var script = document.createElement('script');
tagsInput.tagsinput('focus');
recaptchaErrorMsgDiv.addClass('hidden');
script.type = 'text/javascript';
script.src = 'https://www.google.com/recaptcha/api.js?hl=en';
$(script).insertAfter('#recaptcha-service');
// Remove 'data-invited="true"' status
modal.removeAttr('data-invited');
}).on('hide.bs.modal', function() {
@ -171,6 +175,7 @@
teamSelectorDropdown2.addClass('disabled');
animateSpinner(modalDialog, false);
recaptchaErrorMsgDiv.addClass('hidden');
$('#recaptcha-service').next().remove();
// Unbind event listeners
teamSelectorCheckbox.off('change');