Improve add-to-cart checkbox for items with max. 1 per order (Z#178704) (#2413)

This commit is contained in:
Richard Schreiber
2022-01-12 17:10:00 +01:00
committed by GitHub
parent cf751d38d2
commit 701c4f768e
3 changed files with 20 additions and 2 deletions

View File

@@ -634,6 +634,14 @@ $(function () {
// Lightbox
lightbox.init();
// free-range price input auto-check checkbox
$("[data-checked-onchange]").each(function() {
var checkbox = this;
$("#" + this.getAttribute("data-checked-onchange")).on("change", function() {
checkbox.checked = true;
});
});
});
function copy_answers(elements, answers) {

View File

@@ -31,6 +31,7 @@
}
.item-checkbox-label {
display: block;
margin-top: .4em;
}
.product-description.with-picture {