Skip to content
Snippets Groups Projects
Commit 9c403f70 authored by Chris Hallberg's avatar Chris Hallberg Committed by Robert Lange
Browse files

Remove redundant captcha logic (#1383)

parent a63d797d
Branches
Tags
No related merge requests found
/*global grecaptcha, recaptchaOnLoad, resetCaptcha, VuFind */
/*global recaptchaOnLoad, resetCaptcha, VuFind */
VuFind.register('lightbox', function Lightbox() {
// State
var _originalUrl = false;
......@@ -272,13 +272,6 @@ VuFind.register('lightbox', function Lightbox() {
// Gather data
var form = event.target;
var data = $(form).serializeArray();
// Check for recaptcha
if (typeof grecaptcha !== 'undefined') {
var recaptcha = $(form).find('.g-recaptcha');
if (recaptcha.length > 0) {
data.push({ name: 'g-recaptcha-response', value: grecaptcha.getResponse(recaptcha.data('captchaId')) });
}
}
// Force layout
data.push({ name: 'layout', value: 'lightbox' }); // Return in lightbox, please
// Add submit button information
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment