[minor] [fix] use prop(checked) instead of attr(checked) as recommended for jQuery 1.9.1
diff --git a/website/templates/js/cart.js b/website/templates/js/cart.js
index 2f5ad31..a22b9f3 100644
--- a/website/templates/js/cart.js
+++ b/website/templates/js/cart.js
@@ -249,11 +249,11 @@
});
$address_wrapper.find('input[type="checkbox"]').on("click", function() {
- if($(this).is(":checked")) {
+ if($(this).prop("checked")) {
var me = this;
$address_wrapper.find('input[type="checkbox"]').each(function(i, chk) {
if($(chk).attr("data-address-name")!=$(me).attr("data-address-name")) {
- $(chk).removeAttr("checked");
+ $(chk).prop("checked", false);
}
});
@@ -276,7 +276,7 @@
});
$address_wrapper.find('input[type="checkbox"][data-address-name="'+ address_name +'"]')
- .attr("checked", "checked");
+ .prop("checked", true);
$address_wrapper.find(".accordion-body").collapse({
parent: $address_wrapper,