{*
+--------------------------------------------------------------------+
- | 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. |
| |
<div class="label">{$form.cvv2.label} {$reqMark}</div>
<div class="content">
{$form.cvv2.html}
- <img src="{$config->resourceBase}i/mini_cvv2.gif" alt="{ts}Usually the last 3-4 digits in the signature area on the back of the card.{/ts}" title="{ts}Usually the last 3-4 digits in the signature area on the back of the card.{/ts}" style="vertical-align: text-bottom;" />
+ <span class="cvv2-icon" title="{ts}Usually the last 3-4 digits in the signature area on the back of the card.{/ts}"> </span>
</div>
<div class="clear"></div>
</div>
<script type="text/javascript">
{literal}
-cj( function( ) {
+CRM.$(function($) {
// build list of ids to track changes on
var address_fields = {/literal}{$profileAddressFields|@json_encode}{literal};
var input_ids = {};
}
}
if(checked) {
- cj('#billingcheckbox').attr('checked', 'checked');
+ cj('#billingcheckbox').prop('checked', true);
cj('.billing_name_address-group').hide();
}
var orig_id = input_ids[id];
// if billing checkbox is active, copy other field into billing field
- if(cj('#billingcheckbox').attr('checked')) {
+ if(cj('#billingcheckbox').prop('checked')) {
cj(orig_id).val( cj(id).val() );
};
});
var orig_id = select_ids[id];
// if billing checkbox is active, copy other field into billing field
- if(cj('#billingcheckbox').attr('checked')) {
- cj(orig_id+' option').removeAttr('selected');
- cj(orig_id+' option[value="'+cj(id).val()+'"]').attr('selected', 'selected');
+ if(cj('#billingcheckbox').prop('checked')) {
+ cj(orig_id+' option').prop('selected', false);
+ cj(orig_id+' option[value="'+cj(id).val()+'"]').prop('selected', true);
};
if(orig_id == '#billing_country_id-5') {
};
for(var id in select_ids) {
var orig_id = select_ids[id];
- cj(orig_id+' option').removeAttr('selected');
- cj(orig_id+' option[value="'+cj(id).val()+'"]').attr('selected', 'selected');
+ cj(orig_id+' option').prop('selected', false);
+ cj(orig_id+' option[value="'+cj(id).val()+'"]').prop('selected', true);
};
} else {
cj('.billing_name_address-group').show(200);