Prevent profile preview triggering validation errors
authorColeman Watts <coleman@civicrm.org>
Sat, 6 Sep 2014 18:46:52 +0000 (14:46 -0400)
committerColeman Watts <coleman@civicrm.org>
Sat, 6 Sep 2014 18:46:52 +0000 (14:46 -0400)
templates/CRM/common/localization.js.tpl

index 75f0dbe3a80d3b6ac3fb0d1f3beac6f5af75970a..f2b3652bc177fd054c75050fd564b8e3fc3f3ba2 100644 (file)
@@ -73,7 +73,9 @@
 
   var params = {
     errorClass: 'crm-inline-error',
-    messages: {}
+    messages: {},
+    // TODO: remove after resolution of https://github.com/jzaefferer/jquery-validation/pull/1261
+    ignore: ":hidden, [readonly]"
   };
 
   // use civicrm notifications when there are errors