Skip to content
Snippets Groups Projects
Commit 81c267f5 authored by totten's avatar totten
Browse files

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
parent 4a5e3f79
No related branches found
No related tags found
No related merge requests found
......@@ -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}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment