forked from leftypol/leftypol
ajax.js: fix previous commit
This commit is contained in:
parent
222c4c4d27
commit
d48ba6113a
1 changed files with 7 additions and 6 deletions
|
@ -19,16 +19,17 @@ $(window).ready(function() {
|
||||||
// Enable submit button if disabled (cache problem)
|
// Enable submit button if disabled (cache problem)
|
||||||
$('input[type="submit"]').removeAttr('disabled');
|
$('input[type="submit"]').removeAttr('disabled');
|
||||||
|
|
||||||
|
var setup_form = function($form) {
|
||||||
|
$form.submit(function() {
|
||||||
|
if (do_not_ajax)
|
||||||
|
return true;
|
||||||
|
|
||||||
// In the captcha is present, halt if it does not have a response..
|
// In the captcha is present, halt if it does not have a response..
|
||||||
if (captcha_renderer && postCaptchaId && !captcha_renderer.hasResponse(postCaptchaId)) {
|
if (captcha_renderer && postCaptchaId && !captcha_renderer.hasResponse(postCaptchaId)) {
|
||||||
captcha_renderer.execute(postCaptchaId);
|
captcha_renderer.execute(postCaptchaId);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
var setup_form = function($form) {
|
|
||||||
$form.submit(function() {
|
|
||||||
if (do_not_ajax)
|
|
||||||
return true;
|
|
||||||
var form = this;
|
var form = this;
|
||||||
var submit_txt = $(this).find('input[type="submit"]').val();
|
var submit_txt = $(this).find('input[type="submit"]').val();
|
||||||
if (window.FormData === undefined)
|
if (window.FormData === undefined)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue