mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-11 01:44:34 +08:00
Fix recaptha error
This commit is contained in:
parent
1ef8108521
commit
1ae4a60f79
1 changed files with 5 additions and 0 deletions
|
@ -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');
|
||||||
|
|
Loading…
Reference in a new issue