Minor fixes

This commit is contained in:
Ivan Nikolskiy 2025-05-28 01:45:35 +02:00
parent ec1cccc8f7
commit 41a3c25fae

View File

@ -1,4 +1,4 @@
{% load static %} {% load static hoptcha_tags %}
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
@ -84,12 +84,12 @@
payload["captcha_token"] = "init"; payload["captcha_token"] = "init";
hoptchaPost('/submit/', payload, function(data) { hoptchaPost('/submit/', payload, function(data) {
closeCaptcha();
alert(data.success); alert(data.success);
}, function(error) { }, function(error) {
alert(error); alert(error);
}, function renderCustomCaptcha(url, key, cb) { }, function renderCustomCaptcha(url) {
$('#custom-captcha-frame').attr('src', url + '?client_key=' + key); $('#custom-captcha-frame').attr('src', url);
window._captchaSuccessCallback = cb;
$('#custom-captcha-modal').show(); $('#custom-captcha-modal').show();
}); });
}); });