mirror of
https://github.com/hargata/lubelog.git
synced 2025-12-10 00:46:08 -06:00
only sort if garage is active tab
This commit is contained in:
parent
812e768f93
commit
b4d86f415c
@ -109,9 +109,10 @@ function sortVehicles(desc) {
|
||||
var touchtimer;
|
||||
var touchduration = 800;
|
||||
function detectLongTouch(sender) {
|
||||
event.preventDefault();
|
||||
if (!touchtimer) {
|
||||
touchtimer = setTimeout(function () { sortGarage(sender, true); detectTouchEndPremature(sender); }, touchduration);
|
||||
if ($(sender).hasClass("active")) {
|
||||
if (!touchtimer) {
|
||||
touchtimer = setTimeout(function () { sortGarage(sender, true); detectTouchEndPremature(sender); }, touchduration);
|
||||
}
|
||||
}
|
||||
}
|
||||
function detectTouchEndPremature(sender) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user