Commit 82326c13 authored by aChris07's avatar aChris07 Committed by Peter Droogmans
Browse files

Issue #2494731 by aChris07: Compatibility issue with IPE panels

parent e668bcff
...@@ -1624,7 +1624,7 @@ ...@@ -1624,7 +1624,7 @@
var $ajax_el = jQuery(Drupal.ajax[ajax_el].element); 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 ajax_form = $ajax_el.is('form') ? $ajax_el.attr('id') : $ajax_el.closest('form').attr('id');
var change_ajax = true; var change_ajax = true;
if (typeof Drupal.myClientsideValidation.forms[ajax_form] !== 'undefined') { if (ajax_form != null && typeof Drupal.myClientsideValidation.forms[ajax_form] !== 'undefined') {
change_ajax = Boolean(parseInt(Drupal.myClientsideValidation.forms[ajax_form].general.validateBeforeAjax, 10)); change_ajax = Boolean(parseInt(Drupal.myClientsideValidation.forms[ajax_form].general.validateBeforeAjax, 10));
} }
if (!$ajax_el.hasClass('cancel') && change_ajax) { if (!$ajax_el.hasClass('cancel') && change_ajax) {
......
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