mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-09-21 07:26:15 +08:00
Fix recaptha error
This commit is contained in:
parent
1ef8108521
commit
1ae4a60f79
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue