mirror of
https://github.com/pretix/pretix.git
synced 2026-05-05 15:14:04 +00:00
fix bug when releasing outside of table
This commit is contained in:
@@ -747,15 +747,18 @@ $(function () {
|
||||
|
||||
ev.preventDefault();
|
||||
$rows.on("pointerenter", onChangeSelection);
|
||||
}).on("pointerup", function(ev) {
|
||||
if (onChangeSelectionHappened) {
|
||||
ev.preventDefault();
|
||||
onChangeSelectionHappened = false;
|
||||
$checkboxes.removeAttr("data-inital");
|
||||
}
|
||||
$rows.off("pointerenter", onChangeSelection);
|
||||
|
||||
$(document).one("pointerup", function(ev) {
|
||||
if (onChangeSelectionHappened) {
|
||||
ev.preventDefault();
|
||||
onChangeSelectionHappened = false;
|
||||
$checkboxes.removeAttr("data-inital");
|
||||
}
|
||||
$rows.off("pointerenter", onChangeSelection);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
var update = function () {
|
||||
var all_same;
|
||||
var checkboxes = $checkboxes.toArray();
|
||||
|
||||
Reference in New Issue
Block a user