Commit 939a8412 authored by jelles's avatar jelles
Browse files

Issue #2056219 by inventlogic: General problem with drupal AJAX requests...

Issue #2056219 by inventlogic: General problem with drupal AJAX requests prevented by clientside validation.
parent 271aed03
......@@ -1387,7 +1387,7 @@
var $ajax_el = jQuery(Drupal.ajax[ajax_el].element);
var ajax_form = $ajax_el.is('form') ? $ajax_el.attr('id') : $ajax_el.closest('form').attr('id');
var change_ajax = true;
if (typeof (Drupal.myClientsideValidation.forms[ajax_form] !== 'undefined')) {
if (typeof Drupal.myClientsideValidation.forms[ajax_form] !== 'undefined') {
change_ajax = Boolean(parseInt(Drupal.myClientsideValidation.forms[ajax_form].general.validateBeforeAjax, 10));
}
if (!$ajax_el.hasClass('cancel') && change_ajax) {
......
Markdown is supported
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