Commit 9dfc9d4b authored by Jelle Sebreghts's avatar Jelle Sebreghts
Browse files

Issue #1730952 by Davidovich: Fixed Validate ajax submits clientside before doing ajax request.

parent 7be8812f
......@@ -54,7 +54,11 @@
if (typeof ret === 'undefined') {
ret = true;
}
return ret && Drupal.myClientsideValidation.validators[element.attr('id')].form();
ret = ret && Drupal.myClientsideValidation.validators[element.attr('id')].form();
if (!ret) {
Drupal.ajax[ajax_el].ajaxing = false;
}
return ret;
};
}
}
......
Supports Markdown
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