forked from CGM_Public/pretix_original
Fix auto-quantity change on free-price input
* Fix auto-quantity change on free-price input * do not use one()
This commit is contained in:
committed by
GitHub
parent
1e2900ad2a
commit
0e5e2193ed
@@ -716,7 +716,7 @@ $(function () {
|
||||
// free-range price input auto-check checkbox/set count-input to 1 if 0
|
||||
$("[data-checked-onchange]").each(function() {
|
||||
var countInput = this;
|
||||
$("#" + this.getAttribute("data-checked-onchange")).on("change", function() {
|
||||
$("#" + this.getAttribute("data-checked-onchange")).on("input", function() {
|
||||
if (countInput.type === "checkbox") {
|
||||
if (countInput.checked) return;
|
||||
countInput.checked = true;
|
||||
|
||||
Reference in New Issue
Block a user