CRM-14408 - get rid of unnecessary calls to crmAccordions
authorColeman Watts <coleman@civicrm.org>
Mon, 31 Mar 2014 02:15:12 +0000 (22:15 -0400)
committerColeman Watts <coleman@civicrm.org>
Mon, 31 Mar 2014 02:15:12 +0000 (22:15 -0400)
64 files changed:
js/jquery/jquery.dashboard.js
templates/CRM/Activity/Form/Activity.tpl
templates/CRM/Activity/Form/Search.tpl
templates/CRM/Activity/Selector/Selector.tpl
templates/CRM/Admin/Form/MessageTemplates.tpl
templates/CRM/Admin/Form/ScheduleReminders.tpl
templates/CRM/Campaign/Form/Search/Campaign.tpl
templates/CRM/Campaign/Form/Search/Common.tpl
templates/CRM/Campaign/Form/Search/Petition.tpl
templates/CRM/Campaign/Form/Search/Survey.tpl
templates/CRM/Campaign/Form/Task/Reserve.tpl
templates/CRM/Case/Form/CaseView.js
templates/CRM/Case/Form/Search.tpl
templates/CRM/Case/Page/CustomDataView.tpl
templates/CRM/Contact/Form/Contact.tpl
templates/CRM/Contact/Form/Edit/Address.tpl
templates/CRM/Contact/Form/Search/AdvancedCriteria.tpl
templates/CRM/Contact/Form/Search/BasicCriteria.tpl
templates/CRM/Contact/Form/Search/Builder.js
templates/CRM/Contact/Form/Search/Custom.tpl
templates/CRM/Contact/Form/Search/Custom/ActivitySearch.tpl
templates/CRM/Contact/Form/Search/Custom/ContribSYBNT.tpl
templates/CRM/Contact/Form/Search/Custom/ContributionAggregate.tpl
templates/CRM/Contact/Form/Search/Custom/MultipleValuesCriteria.tpl
templates/CRM/Contact/Form/Search/Custom/Proximity.tpl
templates/CRM/Contact/Form/Task/EmailCommon.js
templates/CRM/Contact/Form/Task/PDFLetterCommon.tpl
templates/CRM/Contact/Form/Task/SMSCommon.tpl
templates/CRM/Contact/Import/Form/Preview.tpl
templates/CRM/Contact/Page/DashBoardDashlet.tpl
templates/CRM/Contact/Page/View/Summary.js
templates/CRM/Contribute/Form/AdditionalPayment.tpl
templates/CRM/Contribute/Form/Contribution.tpl
templates/CRM/Contribute/Form/ContributionPage/Premium.tpl
templates/CRM/Contribute/Form/ContributionPage/Widget.tpl
templates/CRM/Contribute/Form/ManagePremiums.tpl
templates/CRM/Contribute/Form/Search.tpl
templates/CRM/Custom/Form/CustomData.tpl
templates/CRM/Custom/Page/CustomDataView.tpl
templates/CRM/Event/Form/ManageEvent/ScheduleReminders.tpl
templates/CRM/Event/Form/ManageEvent/Tab.tpl
templates/CRM/Event/Form/Participant.tpl
templates/CRM/Event/Form/Search.tpl
templates/CRM/Financial/Form/BatchTransaction.tpl
templates/CRM/Financial/Form/FinancialBatch.tpl
templates/CRM/Financial/Page/Batch.tpl
templates/CRM/Form/attachment.tpl
templates/CRM/Grant/Form/Grant.tpl
templates/CRM/Grant/Form/Search.tpl
templates/CRM/Mailing/Form/Approve.tpl
templates/CRM/Mailing/Form/Group.tpl
templates/CRM/Mailing/Form/Schedule.tpl
templates/CRM/Mailing/Form/Test.tpl
templates/CRM/Member/Form/Search.tpl
templates/CRM/Pledge/Form/Pledge.tpl
templates/CRM/Pledge/Form/Search.tpl
templates/CRM/Profile/Form/Search.tpl
templates/CRM/Report/Form/Case/Detail.tpl
templates/CRM/Report/Form/Fields.tpl
templates/CRM/Report/Page/InstanceList.tpl
templates/CRM/Report/Page/TemplateList.tpl
templates/CRM/SMS/Form/Group.tpl
templates/CRM/SMS/Form/Schedule.tpl
templates/CRM/UF/Form/AdvanceSetting.tpl

index acb39e845b228c3837c8e2dd964eb04477152a83..d4d396dea834c82b07e4e1cc055b890cdd479cb5 100644 (file)
         if (!widget.fullscreenUrl) {
           return;
         }
-        CRM.loadPage(widget.fullscreenUrl).crmAccordions();
+        CRM.loadPage(widget.fullscreenUrl);
       };
       
       // Exit fullscreen mode.
index ace20497037d901c6c8407fe725aa5d198088222..c6c529de2aac71983a42b557423f7d8a2cd82a7e 100644 (file)
       {literal}
         <script type="text/javascript">
           CRM.$(function($) {
-            cj().crmAccordions();
             cj('.crm-accordion-body').each( function() {
               //open tab if form rule throws error
               if ( cj(this).children( ).find('span.crm-error').text( ).length > 0 ) {
index 1bcabfd1e566d518e3f4ef52863d3c914e7fccfa..5a458693f425e797202fea68d631c48a70952aa1 100644 (file)
@@ -88,8 +88,6 @@
 {literal}
   <script type="text/javascript">
     CRM.$(function($) {
-      cj().crmAccordions();
-
       var roleId = cj('input[name=activity_role]:checked', '#Search').val();
       if (roleId) {
         cj('.description .option-' + roleId).show();
index 9eaea866927c3e310a815baf56da0f96ca7ebacd..3b51bffceb4c33a83836f8908679f8d8fc13dbee 100644 (file)
@@ -62,7 +62,6 @@
   var {/literal}{$context}{literal}oTable;
 
   CRM.$(function($) {
-    cj().crmAccordions();
     var context = {/literal}"{$context}"{literal};
     var filterSearchOnLoad = false;
     if (context == 'activity') {
index 9b393555dd5bdfe64d71831eaede50b65cd4a943..6fdcb7b0dae05d3949cde13c92eda8c236877dd6 100644 (file)
 </div>
 </div> <!-- end of crm-form-block -->
 {include file="CRM/Mailing/Form/InsertTokens.tpl"}
-{literal}
-<script type="text/javascript">
-CRM.$(function($) {
-   cj().crmAccordions();
-});
-</script>
-{/literal}
index f92f6cd91a439f4c757c7e9e8bc104cfc8d9d8c3..64a6405cfa4b8203e458ecca0ecf2b55a36e4cf7 100644 (file)
 
 {literal}
 <script type='text/javascript'>
-  CRM.$(function($) {
-    $().crmAccordions();
-  });
     var entityMapping = eval({/literal}{$entityMapping}{literal});
     var recipientMapping = eval({/literal}{$recipientMapping}{literal});
 
index 8c3ffb0e9e0bc7e53fec45df6c777ba11ab5ebac..57486047f1447b2bfc2ed7ffc98218d08a87f438 100755 (executable)
 {literal}
 <script type="text/javascript">
 
-  CRM.$(function($) {
-    cj().crmAccordions();
-  });
-
   {/literal}
   {* load selector when force *}
   {if $force and !$buildSelector}
index 4618a0a5df07af6d6024ea3ea6f47c3989093bfb..5aceb04fa52b00e45f3952f6d0f9fd0cba8d1298 100755 (executable)
 <script type="text/javascript">
 
   CRM.$(function($) {
-    cj().crmAccordions();
-
     {/literal}
     {if !$isFormSubmitted}
       buildCampaignGroups( );
index 37819a5d5177bf6072e80a0dd820d3304eb369c7..479a18263e270dc84c2a311c92e157bce9d55f12 100755 (executable)
 {literal}
 <script type="text/javascript">
 
- CRM.$(function($) {
-    cj().crmAccordions();
- });
-
  {/literal}
  {* load selector when force *}
  {if $force and !$buildSelector}
index b9286a2e3e479ee565e92791c94b8a7b01b381e5..68fa79aa9b5b48bad86b7ade88ddda017f273e52 100755 (executable)
 {literal}
 <script type="text/javascript">
 
- CRM.$(function($) {
-    cj().crmAccordions();
- });
-
  {/literal}
  {* load selector when force *}
  {if $force and !$buildSelector}
index bfb8db8b47328f5aa85d66c95c01c8b4383689cd..e4b857d0b5503b791f4c3dad4c31910a92869189 100755 (executable)
@@ -82,7 +82,6 @@
 <script type="text/javascript">
 
  CRM.$(function($) {
-   cj().crmAccordions();
    setDefaultGroup( );
  });
 
index 48562ba167c13d264c2cc159c82980bcf8b62168..a6a11ad5a61e554353a1502abcb4acf1d672d292 100644 (file)
         e.preventDefault();
       });
 
-    $().crmAccordions();
-
     // Keep the state of accordions when refreshing
     var accordionStates = [];
     $('#crm-main-content-wrapper')
index 39e99989b97fed1f2c79f3f56ec98fca205329f6..519700ceb20dfe3a63146b35fbba979613f32175 100644 (file)
     {/if}
 </div>
 {/if}
-{literal}
-<script type="text/javascript">
-CRM.$(function($) {
-   cj().crmAccordions();
-});
-</script>
-{/literal}
 {/if}
 
 {include file="CRM/Case/Form/ActivityChangeStatusJs.tpl"}
index da6ef019d152bf0049cee3be7fefdf68454cbf95..e30695981dd55140968f3cb65b93ee0b0f77cc21 100644 (file)
 {/foreach}
 <div id="case_custom_edit"></div>
 
-{literal}
-<script type="text/javascript">
-  CRM.$(function($) {
-    cj().crmAccordions();
-  });
-</script>
-{/literal}
 {*currently delete is available only for tab custom data*}
 {if $groupId}
 <script type="text/javascript">
index 5748c2c2c24ea90c234408250ae2c7d222b75912..45a53405617897f2ab4ca78ce9a72d02f063f3cf 100644 (file)
   <script type="text/javascript" >
   CRM.$(function($) {
     var action = "{/literal}{$action}{literal}";
-    $().crmAccordions();
 
     $('.crm-accordion-body').each( function() {
       //remove tab which doesn't have any element
index f996ac2becfe0ffdf4e6819d9fba4aac9cab0bb1..419763da377a0e692ce82d0fc953f1fc9cc4bc10 100644 (file)
@@ -109,11 +109,3 @@ function checkLocation( object, noAlert ) {
 }
 </script>
 {/literal}
-{literal}
-<script type="text/javascript">
-CRM.$(function($) {
-   cj().crmAccordions();
-});
-</script>
-{/literal}
-
index 21212d400daa654be7a696c492a93b34f524d19e..59bf49e6d63b8cbc64b0d8d4922db0bee72a7c96 100644 (file)
@@ -27,7 +27,6 @@
 {literal}
 <script type="text/javascript">
 CRM.$(function($) {
-  $().crmAccordions();
   // Bind first click of accordion header to load crm-accordion-body with snippet
   // everything else is taken care of by crmAccordions()
   $('.crm-search_criteria_basic-accordion .crm-accordion-header').addClass('active');
index a1db6135c708d6dd67312b7733c0c41bd5386b86..26e576d2ffc256dc5c008b66eb031aab195382e5 100644 (file)
     </div><!-- /.crm-accordion-wrapper -->
 </div><!-- /.crm-form-block -->
 {/strip}
-{literal}
-<script type="text/javascript">
-CRM.$(function($) {
-   cj().crmAccordions();
-});
-</script>
-{/literal}
index fedc9fb6c7caf3425b049ba1fd94c309dde9c29a..5a572419b398650d2b382d2570b0fe1eeb9cb3b4 100644 (file)
       $('select[id^=mapper][id$="_1"]', '#Builder').each(handleUserInputField);
     });
 
-  $().crmAccordions();
   initialize();
 
   // Fetch initial options during page refresh - it's more efficient to bundle them in a single ajax request
index e4dee4517e0233a34ecf6f1adedd30edf5534136..2c986fcca77a4aa0fa6b4e543e0d7103c06ff307 100644 (file)
 {/if}
 {literal}
 <script type="text/javascript">
-CRM.$(function($) {
-   cj().crmAccordions();
-});
 
 function toggleContactSelection( name, qfKey, selection ){
   var Url  = "{/literal}{crmURL p='civicrm/ajax/markSelection' h=0}{literal}";
index 09e63bbcb6809d6b32d67adf2b869e50c7f5cecf..9df39c842f3c95eea5113eaacd7deae71e1919e8 100644 (file)
 {/if}
 </div>
 {/if}
-{literal}
-<script type="text/javascript">
-CRM.$(function($) {
-   cj().crmAccordions();
-});
-</script>
-{/literal}
index 7d368b48ddad8ee8d9d3e099eed6d547a53dae95..abea0492d0d505788f1b94b4f67951540de90739 100644 (file)
 
 </div>
 {/if}
-{literal}
-<script type="text/javascript">
- CRM.$(function($) {
-    cj().crmAccordions();
- });
-</script>
-{/literal}
index 72f710ca40d48e59eeaf751a5804569f8c91105a..e30e8e6dc8f22634d86b5ec323dd569f0d1ad3cf 100644 (file)
 
 </div>
 {/if}
-{literal}
-<script type="text/javascript">
-CRM.$(function($) {
-   cj().crmAccordions();
-});
-</script>
-{/literal}
index bb2c561830e32603caf212cafdf016f31736a078..08e612d472991118c699af2a881b969d9e756a94 100644 (file)
     </div><!-- /.crm-accordion-wrapper -->
 </div><!-- /.crm-form-block -->
 {/strip}
-{literal}
-<script type="text/javascript">
-CRM.$(function($) {
-   cj().crmAccordions();
-});
-</script>
-{/literal}
index 70eb60ae7cbdd284486c85f514206170b84e37e3..ba28bf771bf4799d2dfb26889821325152464231 100644 (file)
 
 </div>
 {/if}
-{literal}
-<script type="text/javascript">
-CRM.$(function($) {
-   cj().crmAccordions();
-});
-</script>
-{/literal}
index b2ae29ba461aac7b19da6409118640da8998871c..3f6a1b35d68c7f21dd41788d6a5bdf74bd36db7a 100644 (file)
@@ -1,7 +1,6 @@
 CRM.$(function($) {
   //do not copy & paste this - find a way to generalise it
   'use strict';
-   $().crmAccordions();
   // NOTE: Might be safer to say $('[name=_qf_Email_upload]')
    $('.form-submit').not('.cancel').on("click", function() {
      $('.form-submit').not('.cancel').attr({value: ts('Processing')});
index 7cf5bcde4133bdbd3327b745244934b3df524a82..71a69b40cf2ea604205dc7e03a4ee198e1ca1a2e 100644 (file)
@@ -122,7 +122,6 @@ CRM.$(function($) {
   $('#format_id', $form).on('change', function() {
     selectFormat($(this).val());
   });
-  $().crmAccordions();
 });
 
 var currentWidth;
index 6114e7b152a35e8dd07d4c4760476a709a9fbeb7..e6c94818fe9f22dd05f9c65be541b09594ed2fb6 100644 (file)
@@ -57,9 +57,6 @@
 {include file="CRM/Mailing/Form/InsertTokens.tpl"}
 {literal}
 <script type="text/javascript">
-CRM.$(function($) {
-   cj().crmAccordions();
-});
 
 {/literal}{if $max_sms_length}{literal}
 maxCharInfoDisplay();
index f515df4004e6c9a8a640086410088e3fc32e3647..14402993f576899c2d7673734f35d1e34976be93 100644 (file)
@@ -228,9 +228,6 @@ function verify( ) {
 
 {literal}
 <script type="text/javascript">
-CRM.$(function($) {
-   cj().crmAccordions();
-});
 
 {/literal}{if $invalidGroupName}{literal}
 cj("#new-group.collapsed").crmAccordionToggle();
index a7d7cbf8b2c085595e06f3f8ba12f748c818ab7b..a57dad33dcaad81de01ad52dbc2915fcdfa95857 100644 (file)
       return false;
     });
   });
-  cj().crmAccordions();
 </script>
 {/literal}
 </div>
index ef63940e86a8e95754f1b05be2084716dd6f3eaa..a425d6f833c3b0e449b632d475f33dbeed40e9e6 100644 (file)
           _.each(data.reloadBlocks, reloadBlock);
         }
       });
-    $().crmAccordions();
   });
 })(CRM.$, CRM._);
index 1004450c26620e25e5fe464243346275926c2e54..ad4bf9544d5a642885a1734ff3047842b7c3de59 100644 (file)
@@ -288,10 +288,3 @@ cj('#fee_amount').change( function() {
   {include file="CRM/common/formNavigate.tpl"}
 
 {/if}
-{literal}
-<script type="text/javascript">
-CRM.$(function($) {
-  cj().crmAccordions();
-});
-</script>
-{/literal}
index 79f05effbfe6881349539d0e771ddd0d4ae6a3e9..0ae186af6ee5143fc55280122a0893657b5499fe 100644 (file)
 
 {literal}
 <script type="text/javascript">
-CRM.$(function($) {
-  cj().crmAccordions();
-});
 
 {/literal}
 
index f386064e915a5928e36a07d6b0655a64fcc78030..41f6622b7bdbb7d60ebe190101b40fdec74b65a8 100644 (file)
 <script type="text/javascript">
   {literal}
   CRM.$(function($) {
-    cj().crmAccordions();
 
     // bind click event to premiums_active checkbox
     cj('#premiums_active').click(function () {
index 26a8d45030b423c682073b47fe059cfe1bf8ba2b..23a41bf65da075f802a491152bcc7ac1dd45672c 100644 (file)
 
 {* include jscript to warn if unsaved form field changes *}
 {include file="CRM/common/formNavigate.tpl"}
-
-{literal}
-<script type="text/javascript">
-CRM.$(function($) {
-   cj().crmAccordions();
-});
-</script>
-{/literal}
index 231d24635d14ff7ac7e4f1823b8b709335a397d9..3a55d415edfba4bc3241907efc6ee665d31848b9 100644 (file)
@@ -172,8 +172,6 @@ function add_upload_file_block(parms) {
   }
 }
 
-cj().crmAccordions();
-
 {/literal}
 </script>
 
index 5f10bdcd68112f899d4e329f260a6e37d127510f..4cf9819ea284263de75b30475a3d8417d6da2fff 100644 (file)
 
 </div>
 {/if}
-{literal}
-<script type="text/javascript">
-CRM.$(function($) {
-   cj().crmAccordions();
-});
-</script>
-{/literal}
 
index a9fd459b5bd5e3724b7674f7d4905737e89bdb90..3022505f4c7032ef9dee410fb802a626c80a4a2b 100644 (file)
     {/if}
     <div id="custom_group_{$group_id}_{$cgCount}"></div>
   {/foreach}
-  <script type="text/javascript">
-    {literal}
-      CRM.$(function($) {
-        cj().crmAccordions();
-      });
-    {/literal}
-  </script>
 
 {/if}
 
index db3e48e375a3724b2e398b06bc1104fe2c5445c1..28474618b50ed88637cc4d13e4b020c9260f4e62 100644 (file)
 {/if}
   {/foreach}
 {/foreach}
-{literal}
-  <script type="text/javascript">
-    CRM.$(function($) {
-      cj().crmAccordions();
-    });
-  </script>
-{/literal}
 {*currently delete is available only for tab custom data*}
 {if $groupId}
   <script type="text/javascript">
index bb366944f6ea355e5cb6f311e8c7ed2f673e6407..56512947c6529612cbf7ceb23935f947b3b8d29d 100755 (executable)
@@ -50,7 +50,6 @@
     {* added onload javascript for source contact*}
     {literal}
       <script type="text/javascript">
-        cj().crmAccordions();
       var recipient_manual = '';
       var recipient_manual_id = null;
       var toDataUrl = "{/literal}{crmURL p='civicrm/ajax/checkemail' q='id=1&noemail=1' h=0 }{literal}"; {/literal}
index b148863b4f447df562ad1e2f9e08883f628cdcb3..c77a9455ab3d5e32a69ea9621d30c018aeef6c61 100644 (file)
@@ -103,7 +103,6 @@ CRM.$(function($) {
     $('#crm-event-name-page-title').text($(this).val());
   });
   
-  $().crmAccordions();
 });
 </script>
 {/literal}
index 4e085d14b5a29c93956f5f733e6dd56864cdb1a3..4b76db50d84247250f6b15ec96462d795edba5f0 100644 (file)
     }
     {/literal}
   {/if}
-  {literal}
-  CRM.$(function($) {
-    cj().crmAccordions();
-  });
-  {/literal}
 </script>
 
 {/if} {* end of main event block*}
index 8b5c0f54fd38edc92f57024dff6b7e3183d89b42..dc825029677e08ea9d81d3160fee48212c8f77a9 100644 (file)
 
 </div>
 {/if}
-{literal}
-<script type="text/javascript">
-CRM.$(function($) {
-   cj().crmAccordions();
-});
-</script>
-{/literal}
index 293e15f53158e72b24e8661f1c03b471bf1b55ee..0ce0b1dfd2fe5b76ef0be58b1d3c6d1af6de5a38 100644 (file)
@@ -90,7 +90,6 @@
 {literal}
 <script type="text/javascript">
 CRM.$(function($) {
-  cj().crmAccordions();
   cj('#_qf_BatchTransaction_submit-top, #_qf_BatchTransaction_submit-botttom').click(function() {
     cj('.crm-batch_transaction_search-accordion:not(.collapsed)').crmAccordionToggle();
   });
index 8aa74cd7c8c020bc30293a1b86f4c52ed0e3bb21..55d7bfb48a50abd45ddbf23ec6bd47b9aa946012 100644 (file)
   <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="botttom"}</div>
 </div>
 {include file="CRM/Form/validate.tpl"}
-{literal}
-<script type="text/javascript">
-CRM.$(function($) {
-  $().crmAccordions();
-});
-</script>
-{/literal}
index 9d61b9bbc3162656aafe79ae89f03461327659ab..4f719afdaba781bf24756362221341c3b9262a6f 100644 (file)
@@ -24,6 +24,3 @@
  +--------------------------------------------------------------------+
 *}
 {include file="CRM/Financial/Form/Search.tpl"}
-<script type="text/javascript">
-  cj().crmAccordions();
-</script>
index ecd119c93be4aa7a4eafcdddbdf0612d8dd7e78e..97640108f5b99c7a006a39e97d55408e9e1a1038 100644 (file)
     </div>
   </div><!-- /.crm-accordion-body -->
   </div><!-- /.crm-accordion-wrapper -->
-  {if !$noexpand}
-    {literal}
-    <script type="text/javascript">
-    CRM.$(function($) {
-       cj().crmAccordions();
-    });
-    </script>
-    {/literal}
-  {/if}
     {literal}
     <script type="text/javascript">
       function clearAttachment( element, desc ) {
index 8dab641e1ced49d005f738ba1c0d7c650dc278d1..a2e00235a0528cfd581470bc748ac0c5f9b8b972 100644 (file)
         {literal}
     });
 
-    CRM.$(function($) {
-       cj().crmAccordions();
-    });
 </script>
 {/literal}
 
index b2436d142b83827bfb3a451061060fa82e03ed08..3c0ae601202d764602bb93d803c12957a496f992 100644 (file)
     </div><!-- /.crm-results-block -->
 {/if}
 </div><!-- /.crm-content-block -->
-{literal}
-<script type="text/javascript">
-CRM.$(function($) {
-   cj().crmAccordions();
-});
-</script>
-{/literal}
index 0a554f0cf88005e70d392a0e97bd50f22545b1d8..bc4d5b73be4d08ffcbec686675987aa2a08a0f2f 100644 (file)
 </div><!-- /.crm-accordion-wrapper -->
 
 </div>
-
-{literal}
-<script type="text/javascript">
-CRM.$(function($) {
-   cj().crmAccordions();
-});
-</script>
-{/literal}
-
index 6b19195da3e4bbdfc63eb68597082a603fe843f0..e273a97c6267cba1027684ffeac8a7b91b8dcf16 100644 (file)
   <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl"}</div>
 </div>
 
-{literal}
-<script type="text/javascript">
-CRM.$(function($) {
-   cj().crmAccordions();
-});
-</script>
-{/literal}
-
 {* include jscript to warn if unsaved form field changes *}
 {include file="CRM/common/formNavigate.tpl"}
 </div>
index 194856ae230da6b4be78ef2e3768eaf4f7726edc..deccdaf57dfd5869e03e5b94b785771f62d910bd 100644 (file)
 </div>
 
 <script type="text/javascript">
-{if $preview}
-{literal}
-CRM.$(function($) {
-   cj().crmAccordions();
-});
-{/literal}
-{/if}
-
 {literal}
 CRM.$(function($) {
    cj('#start_date_display').change( function( ) {
index 1c534a497f9582e361ef40ca604b0accb520d86a..81a40fd635a2ed05f99d67595f1fc55f6f09cb1b 100644 (file)
 
 {* include jscript to warn if unsaved form field changes *}
 {include file="CRM/common/formNavigate.tpl"}
-{literal}
-<script type="text/javascript">
-CRM.$(function($) {
-   cj().crmAccordions(); 
-});
-</script>
-{/literal}
-
index 76338d461ff0e0c174d741e9c81eefca69022f3d..04203947c0ceaeacb0b8ff4c1841da84ebd7ec75 100644 (file)
   </div>
   {/if}
 </div>
-{literal}
-<script type="text/javascript">
-CRM.$(function($) {
-   cj().crmAccordions();
-});
-</script>
-{/literal}
index 1837f7d304770d03af0e15bf012cd65ccbeff484..4223dd56d469a139aacf68c121d402085dac523f 100644 (file)
@@ -200,13 +200,6 @@ function loadPanes( id ) {
 <br />
 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
 </div>
-{literal}
-<script type="text/javascript">
-CRM.$(function($) {
-   cj().crmAccordions();
-});
-</script>
-{/literal}
 {literal}
      <script type="text/javascript">
 
index 8f208fa020ecb0b24a69c18adcfe9cb43eff074d..7be51ed1da2fcc8e678e8eb6ff5947a99ebe6345 100644 (file)
 {/if}
 </div>
 {/if}
-{literal}
-<script type="text/javascript">
-CRM.$(function($) {
-   cj().crmAccordions();
-});
-</script>
-{/literal}
index 8735b8994dccb445e31dcdc434c651f695c05737..c690b58990a7a9b1b0209e31a35fd08616d07bce 100644 (file)
   {if $groupId}
   </div><!-- /.crm-accordion-body -->
   </div><!-- /.crm-accordion-wrapper -->
-
-    {literal}
-      <script type="text/javascript">
-        CRM.$(function($) {
-          cj().crmAccordions();
-        });
-      </script>
-    {/literal}
-
   {/if}
 
 {elseif $statusMessage}
index 3018ead021f20500b93cc5a3e4a6180c11b25141..6767c16e5dcc2ac3cde86d079d31cef7139175b8 100644 (file)
     {/if}
     {/if} {* settings section ends *}
 
-    {literal}
-    <script type="text/javascript">
-    CRM.$(function($) {
-      cj().crmAccordions();
-    });
-    </script>
-    {/literal}
-
     {/if} {* NO print section ends *}
 
 
index b21a32e83a924abb8a00650598455200fa89a81a..1db83d656913e0ea9cc434fab34e7ac498b57f73 100644 (file)
 {/if}
 {/if} {* settings section ends *}
 
-{literal}
-<script type="text/javascript">
-CRM.$(function($) {
-   cj().crmAccordions();
-});
-</script>
-{/literal}
-
 {/if} {* NO print section ends *}
index 63c68126e329194b2e7cd31a762ae8480796b138..6fcf2ac96657e6c36c9d17e2cf53c0faf6277c15 100644 (file)
 </div>
 {/if}
 {/strip}
-{literal}
-<script type="text/javascript">
-CRM.$(function($) {
-   cj().crmAccordions();
-});
-</script>
-{/literal}
index 0b38e6de624be698b18ec69847b6230b4dbb832b..3952ae88b19faf003c9006ff4141e506f5d7b0c9 100644 (file)
 {/if}
 {/strip}
 
-{literal}
-<script type="text/javascript">
-CRM.$(function($) {
-   cj().crmAccordions();
-});
-</script>
-{/literal}
 </div>
index 8d7b69c10d8cfaffdf5ad26914bac006b8faee37..393298ee0a744e4e38c755efaa7a282d8e73a880 100644 (file)
   <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl"}</div>
 </div>
 
-{literal}
-<script type="text/javascript">
-CRM.$(function($) {
-   cj().crmAccordions();
-});
-</script>
-{/literal}
-
 {* include jscript to warn if unsaved form field changes *}
 {include file="CRM/common/formNavigate.tpl"}
 </div>
index f494d34cc5bdb1b0dc4410a9e7430a82f14907d7..999f7be76e3f889192e22b3bb66be49c0725e260 100644 (file)
 
 <script type="text/javascript">
 {if $preview}
-{literal}
-CRM.$(function($) {
-   cj().crmAccordions();
-});
-{/literal}
 {/if}
 
 {literal}
index f8a72de026d256cd440c329a9a4b293f74746325..5606b59197f524ad5c0896665ecabdd9498a5b81 100644 (file)
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
 *}
-{literal}
-<script type="text/javascript">
-    CRM.$(function($) {
-        cj().crmAccordions();
-    });
-</script>
-{/literal}
-
 <div class="crm-accordion-wrapper collapsed">
  <div class="crm-accordion-header">
     Advanced Settings