From 1bfa4c6fda76d30183e7cbfe1076acb810b4a930 Mon Sep 17 00:00:00 2001 From: Richard Schreiber Date: Mon, 22 Feb 2021 18:16:46 +0100 Subject: [PATCH] update toggle-state after release/pointerup instead of during updateSelection --- src/pretix/static/pretixcontrol/js/ui/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pretix/static/pretixcontrol/js/ui/main.js b/src/pretix/static/pretixcontrol/js/ui/main.js index db7869e74..73b6d3bce 100644 --- a/src/pretix/static/pretixcontrol/js/ui/main.js +++ b/src/pretix/static/pretixcontrol/js/ui/main.js @@ -707,8 +707,6 @@ $(function () { if (!checkbox.hasAttribute("data-inital")) checkbox.setAttribute("data-inital", checkbox.checked); if (checked === undefined || checked === null) checkbox.checked = checkbox.getAttribute("data-inital") === "true"; else checkbox.checked = checked; - - $(checkbox).trigger("change"); } }; var onChangeSelection = function(ev) { @@ -753,6 +751,8 @@ $(function () { ev.preventDefault(); onChangeSelectionHappened = false; $checkboxes.removeAttr("data-inital"); + + update(); } $rows.off("pointerenter", onChangeSelection); });