2 +--------------------------------------------------------------------+
3 | Copyright CiviCRM LLC. All rights reserved. |
5 | This work is published under the GNU AGPLv3 license with some |
6 | permitted exceptions and without any warranty. For full license |
7 | and copyright information, see https://civicrm.org/licensing |
8 +--------------------------------------------------------------------+
10 {* Initialize jQuery validate on a form *}
11 {* Extra params and functions may be added to the CRM.validate object before this template is loaded *}
12 {if empty($crm_form_validate_included) && ((isset($smarty.get.snippet|smarty:nodefaults) && $smarty.get.snippet neq 'json') || !isset($smarty.get.snippet|smarty:nodefaults)) && !empty($form) && !empty($form.formClass)}
13 {assign var=crm_form_validate_included value=1}
15 <script type="text/javascript">
17 $("form.{/literal}{$form.formClass}{literal}").crmValidate();