Minor fixes
This commit is contained in:
parent
ec1cccc8f7
commit
41a3c25fae
@ -1,4 +1,4 @@
|
||||
{% load static %}
|
||||
{% load static hoptcha_tags %}
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
@ -84,12 +84,12 @@
|
||||
payload["captcha_token"] = "init";
|
||||
|
||||
hoptchaPost('/submit/', payload, function(data) {
|
||||
closeCaptcha();
|
||||
alert(data.success);
|
||||
}, function(error) {
|
||||
alert(error);
|
||||
}, function renderCustomCaptcha(url, key, cb) {
|
||||
$('#custom-captcha-frame').attr('src', url + '?client_key=' + key);
|
||||
window._captchaSuccessCallback = cb;
|
||||
}, function renderCustomCaptcha(url) {
|
||||
$('#custom-captcha-frame').attr('src', url);
|
||||
$('#custom-captcha-modal').show();
|
||||
});
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user