{*
+--------------------------------------------------------------------+
- | 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(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);