Commit 5fc4042b authored by alex-mo's avatar alex-mo Committed by jelles
Browse files

Issue #2279537 by Turek, alex-mo: Fixed IE8: Unable to get property...

Issue #2279537 by Turek, alex-mo: Fixed IE8: Unable to get property 'beforeSubmit' of undefined or null reference.
parent 6e8fa242
......@@ -1437,7 +1437,7 @@
}
// Set validation for ctools modal forms
for (var ajax_el in Drupal.ajax) {
if (typeof Drupal.ajax[ajax_el] !== 'undefined') {
if (Drupal.ajax.hasOwnProperty(ajax_el) && typeof Drupal.ajax[ajax_el] !== 'undefined') {
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;
......
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