CRM-14408 - get rid of unnecessary calls to crmAccordions
[civicrm-core.git] / templates / CRM / Financial / Form / BatchTransaction.tpl
index 8be7dd060f129e5919ab0a728bae7536ab145e07..0ce0b1dfd2fe5b76ef0be58b1d3c6d1af6de5a38 100644 (file)
@@ -1,8 +1,8 @@
 {*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.3                                                |
+ | 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();
   });
@@ -133,8 +109,8 @@ cj( function() {
       return false;
     });
 
-    cj("#trans_assign").attr('disabled',true);
-    cj("#trans_remove").attr('disabled',true);
+    cj("#trans_assign").prop('disabled',true);
+    cj("#trans_remove").prop('disabled',true);
     cj('#crm-transaction-selector-assign #toggleSelect').click( function() {
       enableActions('x');
     });
@@ -190,10 +166,10 @@ cj( function() {
 
 function enableActions( type ) {
   if (type == 'x') {
-    cj("#trans_assign").attr('disabled',false);
+    cj("#trans_assign").prop('disabled',false);
   }
   else {
-    cj("#trans_remove").attr('disabled',false);
+    cj("#trans_remove").prop('disabled',false);
   }
 }