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() { }).on('shown.bs.modal', function() {
var script = document.createElement('script');
tagsInput.tagsinput('focus'); tagsInput.tagsinput('focus');
recaptchaErrorMsgDiv.addClass('hidden'); 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 // Remove 'data-invited="true"' status
modal.removeAttr('data-invited'); modal.removeAttr('data-invited');
}).on('hide.bs.modal', function() { }).on('hide.bs.modal', function() {
@ -171,6 +175,7 @@
teamSelectorDropdown2.addClass('disabled'); teamSelectorDropdown2.addClass('disabled');
animateSpinner(modalDialog, false); animateSpinner(modalDialog, false);
recaptchaErrorMsgDiv.addClass('hidden'); recaptchaErrorMsgDiv.addClass('hidden');
$('#recaptcha-service').next().remove();
// Unbind event listeners // Unbind event listeners
teamSelectorCheckbox.off('change'); teamSelectorCheckbox.off('change');