CRM-13078, typo fixes
authorkurund <kurund@civicrm.org>
Mon, 5 Aug 2013 05:12:22 +0000 (10:42 +0530)
committerkurund <kurund@civicrm.org>
Mon, 5 Aug 2013 05:12:22 +0000 (10:42 +0530)
----------------------------------------
* CRM-13078: Batch Data Entry silently drops 'batch-valid' entries if no contact_id is associated with them
  http://issues.civicrm.org/jira/browse/CRM-13078

js/Common.js

index e2382e29a7551410214cdbbce6f9fcf4b141d13c..70c6692ad32c03a2928843f2d9995f9c9ce0fdab 100644 (file)
@@ -754,9 +754,12 @@ CRM.validate = CRM.validate || {
     });
     // Handle qf form errors
     $('form :input.error', this).one('blur', function() {
+      // ignore autocomplete fields
       if ($(this).is('.ac_input')) {
         return;
       }
+
+      $('.ui-notify-message.error a.ui-notify-close').click();
       $(this).removeClass('error');
       $(this).next('span.crm-error').remove();
       $('label[for="' + $(this).attr('name') + '"], label[for="' + $(this).attr('id') + '"]')