[minor] [fix] use prop(checked) instead of attr(checked) as recommended for jQuery 1.9.1
This commit is contained in:
parent
396d40c34e
commit
1672fd8c99
@ -249,11 +249,11 @@ $.extend(wn.cart, {
|
|||||||
});
|
});
|
||||||
|
|
||||||
$address_wrapper.find('input[type="checkbox"]').on("click", function() {
|
$address_wrapper.find('input[type="checkbox"]').on("click", function() {
|
||||||
if($(this).is(":checked")) {
|
if($(this).prop("checked")) {
|
||||||
var me = this;
|
var me = this;
|
||||||
$address_wrapper.find('input[type="checkbox"]').each(function(i, chk) {
|
$address_wrapper.find('input[type="checkbox"]').each(function(i, chk) {
|
||||||
if($(chk).attr("data-address-name")!=$(me).attr("data-address-name")) {
|
if($(chk).attr("data-address-name")!=$(me).attr("data-address-name")) {
|
||||||
$(chk).removeAttr("checked");
|
$(chk).prop("checked", false);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -276,7 +276,7 @@ $.extend(wn.cart, {
|
|||||||
});
|
});
|
||||||
|
|
||||||
$address_wrapper.find('input[type="checkbox"][data-address-name="'+ address_name +'"]')
|
$address_wrapper.find('input[type="checkbox"][data-address-name="'+ address_name +'"]')
|
||||||
.attr("checked", "checked");
|
.prop("checked", true);
|
||||||
|
|
||||||
$address_wrapper.find(".accordion-body").collapse({
|
$address_wrapper.find(".accordion-body").collapse({
|
||||||
parent: $address_wrapper,
|
parent: $address_wrapper,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user