mirror of
https://github.com/pretix/pretix.git
synced 2026-05-07 15:34:02 +00:00
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
|
// free-range price input auto-check checkbox/set count-input to 1 if 0
|
||||||
$("[data-checked-onchange]").each(function() {
|
$("[data-checked-onchange]").each(function() {
|
||||||
var countInput = this;
|
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.type === "checkbox") {
|
||||||
if (countInput.checked) return;
|
if (countInput.checked) return;
|
||||||
countInput.checked = true;
|
countInput.checked = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user