Hi,
Updating to 1.40 brings in that commit: http://cgit.drupalcode.org/clientside_validation/commit/?id=f9bc769f24be...

diff --git a/clientside_validation.module b/clientside_validation.module
index 247ce39..e918b19 100644
--- a/clientside_validation.module
+++ b/clientside_validation.module
@@ -30,7 +30,7 @@ function clientside_validation_js_alter(&$javascript) {
  $clientside_validation_settings['clientsideValidation']['general']['months'][t(date('F', $date))] = $month_number;
  $clientside_validation_settings['clientsideValidation']['general']['months'][t(date('M', $date))] = $month_number;
}
  - $javascript['settings']['data'][] = $clientside_validation_settings;
  + drupal_add_js($clientside_validation_settings, 'setting');
}

With it, Drupal.settings.clientside_validation is null, Drupal.myClientsideValidation is thus null too (see clientside_validation.js@26) and custom behavior run inside clientsideValidationInitialized can't be added (stuff like Drupal.myClientsideValidation.validators[formid].settings.highlight).

Reverting the above fixed the issue.

Cheers

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

saradaprasad17’s picture

FileSize
60.8 KB

Hi ,
Am facing this js error while using minifyjs . I have fixed this . Will upload the patch .

saradaprasad17’s picture

Hi , I have uploaded the patch .

saradaprasad17’s picture

Hi All,

Have modified the code ,here's the updated patch .