The Delete / Recalculate / Refine / Compare handlers were bound inside `if (mapEl && points.length)` in showSessionDetail, so a track with no points (started recording, no GPS fix, stopped → 0 km) skipped the whole block and its "Удалить" button did nothing. Moved the session-action button handlers outside the map/points guard so they bind regardless. (Also covers a track whose points all get dropped by the new accuracy filter.) DB.deleteGpsSession already handled zero points fine (DELETE of 0 rows is a no-op); the bug was purely the unbound click handler. |
||
|---|---|---|
| .. | ||
| css | ||
| data | ||
| img | ||
| js | ||
| lib | ||
| index.html | ||