Commit 7059ecc9 authored by Jelle Sebreghts's avatar Jelle Sebreghts
Browse files

Issue #2454141 by heathdutton: Compatibility with Panopoly Magic

parent ccd4dbc0
...@@ -1608,7 +1608,7 @@ ...@@ -1608,7 +1608,7 @@
ret = true; ret = true;
} }
var id = element.is('form') ? element.attr('id') : element.closest('form').attr('id'); var id = element.is('form') ? element.attr('id') : element.closest('form').attr('id');
if (id && Drupal.myClientsideValidation.validators[id]) { if (id && Drupal.myClientsideValidation.validators[id] && Drupal.myClientsideValidation.validators[id].form) {
Drupal.myClientsideValidation.validators[id].onsubmit = false; Drupal.myClientsideValidation.validators[id].onsubmit = false;
ret = ret && Drupal.myClientsideValidation.validators[id].form(); ret = ret && Drupal.myClientsideValidation.validators[id].form();
if (!ret) { if (!ret) {
......
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