forked from CGM_Public/pretix_original
Improve add-to-cart checkbox for items with max. 1 per order (Z#178704) (#2413)
This commit is contained in:
committed by
GitHub
parent
cf751d38d2
commit
701c4f768e
@@ -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) {
|
||||
|
||||
@@ -31,6 +31,7 @@
|
||||
}
|
||||
.item-checkbox-label {
|
||||
display: block;
|
||||
margin-top: .4em;
|
||||
}
|
||||
|
||||
.product-description.with-picture {
|
||||
|
||||
Reference in New Issue
Block a user