From 81c267f596c8b516c6720abdd679902625a9d4d5 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Tue, 13 Aug 2013 16:45:30 -0700 Subject: [PATCH] CRM-12892 - CRM/Form/validate.tpl - Clarify error about date formatting Also: Fix loading of custom error messages ---------------------------------------- * CRM-12892: CiviHR - Entity - Job Positions & Roles http://issues.civicrm.org/jira/browse/CRM-12892 --- templates/CRM/Form/validate.tpl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/CRM/Form/validate.tpl b/templates/CRM/Form/validate.tpl index 419e696dbc..ea5e683d1c 100644 --- a/templates/CRM/Form/validate.tpl +++ b/templates/CRM/Form/validate.tpl @@ -41,7 +41,7 @@ cj(function($) { email: "{ts escape='js'}Please enter a valid email address.{/ts}", url: "{ts escape='js'}Please enter a valid URL.{/ts}", date: "{ts escape='js'}Please enter a valid date.{/ts}", - dateISO: "{ts escape='js'}Please enter a valid date (ISO).{/ts}", + dateISO: "{ts escape='js'}Please enter a valid date (YYYY-MM-DD).{/ts}", number: "{ts escape='js'}Please enter a valid number.{/ts}", digits: "{ts escape='js'}Please enter only digits.{/ts}", creditcard: "{ts escape='js'}Please enter a valid credit card number.{/ts}", @@ -70,6 +70,7 @@ cj(function($) { CRM.validate.params = CRM.validate.params || {}; $.extend(CRM.validate.params, params); + $.extend($.validator.messages, CRM.validate.params.messages); {/literal} {if $form && $form.formName} -- 2.25.1