CRM-14408 - get rid of unnecessary calls to crmAccordions
[civicrm-core.git] / templates / CRM / Financial / Form / BatchTransaction.tpl
index 4f5ff95936485f7d14a886dc99a4dee40cacfe72..0ce0b1dfd2fe5b76ef0be58b1d3c6d1af6de5a38 100644 (file)
@@ -1,8 +1,8 @@
 {*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.4                                                |
+ | CiviCRM version 4.5                                                |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013                                |
+ | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
           {if $form.contact_tags}
             <td><label>{ts}Contributor Tag(s){/ts}</label>
               {$form.contact_tags.html}
-              {literal}
-                <script type="text/javascript">
-                  cj("select#contact_tags").crmasmSelect({
-                    addItemTarget: 'bottom',
-                    animate: false,
-                    highlight: true,
-                    sortable: true,
-                    respectParents: true
-                  });
-                </script>
-              {/literal}
             </td>
             {else}
             <td>&nbsp;</td>
           {if $form.group}
             <td><label>{ts}Contributor Group(s){/ts}</label>
               {$form.group.html}
-              {literal}
-                <script type="text/javascript">
-                  cj("select#group").crmasmSelect({
-                    addItemTarget: 'bottom',
-                    animate: false,
-                    highlight: true,
-                    sortable: true,
-                    respectParents: true
-                  });
-
-                </script>
-              {/literal}
             </td>
             {else}
             <td>&nbsp;</td>
 
 {literal}
 <script type="text/javascript">
-cj( function() {
-  cj().crmAccordions();
+CRM.$(function($) {
   cj('#_qf_BatchTransaction_submit-top, #_qf_BatchTransaction_submit-botttom').click(function() {
     cj('.crm-batch_transaction_search-accordion:not(.collapsed)').crmAccordionToggle();
   });