{*
+--------------------------------------------------------------------+
- | 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> </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> </td>
{literal}
<script type="text/javascript">
-cj( function() {
+CRM.$(function($) {
cj().crmAccordions();
cj('#_qf_BatchTransaction_submit-top, #_qf_BatchTransaction_submit-botttom').click(function() {
cj('.crm-batch_transaction_search-accordion:not(.collapsed)').crmAccordionToggle();
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');
});
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);
}
}