From 32678ccbf9ca2413ce66bc449f079fa7a4e655ed Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Fri, 15 Aug 2014 13:27:34 +0100 Subject: [PATCH] JS cleanup - switch to new document ready syntax --- templates/CRM/Admin/Form/Job.tpl | 24 +++++++++-------- .../CRM/Admin/Form/Preferences/Display.tpl | 10 ++++--- templates/CRM/Campaign/Form/Campaign.tpl | 12 ++++----- templates/CRM/Campaign/Form/ResultOptions.tpl | 2 +- templates/CRM/Case/Form/Case.tpl | 4 +-- .../CRM/Contact/Import/Form/DataSource.tpl | 2 +- templates/CRM/Contact/Page/View/Note.tpl | 22 ++++++++-------- .../CRM/Event/Cart/Form/Checkout/Payment.tpl | 24 ++++++++--------- .../CRM/Event/Form/ManageEvent/EventInfo.tpl | 2 +- .../CRM/Event/Form/ManageEvent/Location.tpl | 26 +++++++++---------- templates/CRM/Mailing/Form/Search.tpl | 14 +++++----- templates/CRM/Pledge/Form/Payment.tpl | 15 +++++------ templates/CRM/Price/Form/LineItem.tpl | 12 ++++----- templates/CRM/Price/Form/ParticipantCount.tpl | 2 +- templates/CRM/Price/Page/LineItem.tpl | 2 +- templates/CRM/Report/Form/Instance.tpl | 4 +-- 16 files changed, 89 insertions(+), 88 deletions(-) diff --git a/templates/CRM/Admin/Form/Job.tpl b/templates/CRM/Admin/Form/Job.tpl index 5be58410d5..6faa276abd 100644 --- a/templates/CRM/Admin/Form/Job.tpl +++ b/templates/CRM/Admin/Form/Job.tpl @@ -66,33 +66,35 @@
{ts}Put in the API method name. You need to enter pieces of full API function name as described in the documentation.{/ts}
diff --git a/templates/CRM/Admin/Form/Preferences/Display.tpl b/templates/CRM/Admin/Form/Preferences/Display.tpl index 5b61d2c680..c95ac861a5 100644 --- a/templates/CRM/Admin/Form/Preferences/Display.tpl +++ b/templates/CRM/Admin/Form/Preferences/Display.tpl @@ -172,11 +172,13 @@ {$form.wysiwyg_input_format.label} {$form.wysiwyg_input_format.html}{literal} - + }); + {/literal}
diff --git a/templates/CRM/Campaign/Form/Campaign.tpl b/templates/CRM/Campaign/Form/Campaign.tpl index e4951c54cb..2e02d66fbf 100644 --- a/templates/CRM/Campaign/Form/Campaign.tpl +++ b/templates/CRM/Campaign/Form/Campaign.tpl @@ -112,14 +112,14 @@ {literal} {/literal} diff --git a/templates/CRM/Campaign/Form/ResultOptions.tpl b/templates/CRM/Campaign/Form/ResultOptions.tpl index 1572347c73..0818b086d8 100644 --- a/templates/CRM/Campaign/Form/ResultOptions.tpl +++ b/templates/CRM/Campaign/Form/ResultOptions.tpl @@ -163,7 +163,7 @@ }, "json" ); } - cj(document).ready( function( ) { + CRM.$(function($) { showOptionSelect( ); }); diff --git a/templates/CRM/Case/Form/Case.tpl b/templates/CRM/Case/Form/Case.tpl index 6f8785a3f8..04576a9200 100644 --- a/templates/CRM/Case/Form/Case.tpl +++ b/templates/CRM/Case/Form/Case.tpl @@ -133,8 +133,8 @@ {include file="CRM/common/customData.tpl"} {literal} diff --git a/templates/CRM/Event/Cart/Form/Checkout/Payment.tpl b/templates/CRM/Event/Cart/Form/Checkout/Payment.tpl index 81a7a4aa7d..c7962ee963 100644 --- a/templates/CRM/Event/Cart/Form/Checkout/Payment.tpl +++ b/templates/CRM/Event/Cart/Form/Checkout/Payment.tpl @@ -155,23 +155,23 @@ {/literal} diff --git a/templates/CRM/Price/Form/LineItem.tpl b/templates/CRM/Price/Form/LineItem.tpl index c583f2b66b..a085961e32 100644 --- a/templates/CRM/Price/Form/LineItem.tpl +++ b/templates/CRM/Price/Form/LineItem.tpl @@ -84,17 +84,17 @@ {literal} diff --git a/templates/CRM/Price/Form/ParticipantCount.tpl b/templates/CRM/Price/Form/ParticipantCount.tpl index bde0774cc7..9a25771ed9 100644 --- a/templates/CRM/Price/Form/ParticipantCount.tpl +++ b/templates/CRM/Price/Form/ParticipantCount.tpl @@ -32,7 +32,7 @@ var pPartiRef = Array( ); var optionSep = '|'; - cj(document).ready( function( ) { + CRM.$(function($) { pricesetParticipantCount( ); allowGroupOnWaitlist(0, pPartiCount); }); diff --git a/templates/CRM/Price/Page/LineItem.tpl b/templates/CRM/Price/Page/LineItem.tpl index 600e00826b..29d82f3b5e 100644 --- a/templates/CRM/Price/Page/LineItem.tpl +++ b/templates/CRM/Price/Page/LineItem.tpl @@ -108,7 +108,7 @@ {/if} {literal}