CRM-13165 - CRM/Form/validate.tpl - Make it easier to include in CiviHR
authorTim Otten <totten@civicrm.org>
Mon, 12 Aug 2013 06:47:01 +0000 (23:47 -0700)
committerTim Otten <totten@civicrm.org>
Mon, 12 Aug 2013 06:47:01 +0000 (23:47 -0700)
----------------------------------------
* CRM-13165: hrjob: Re-save produces blocking error, "X is not a valid amount"
  http://issues.civicrm.org/jira/browse/CRM-13165

templates/CRM/Form/validate.tpl

index 31dd81c10214bae627d3b51ca4c4d9e5524aa609..419e696dbc59d934dbffb9951d2a8cb102883abf 100644 (file)
@@ -27,6 +27,9 @@
 {* Initialize jQuery validate *}
 {* Extra params and functions may be added to the CRM.validate object before this template is loaded *}
 
+{if !$crm_form_validate_included}
+{assign var=crm_form_validate_included value=1}
+
 {literal}
 <script type="text/javascript" >
 cj(function($) {
@@ -82,3 +85,4 @@ cj(function($) {
   {/if}
 });
 </script>
+{/if}