Skip to content

Commit bd1a870

Browse files
fix focus param in hash url not working properly
1 parent b654512 commit bd1a870

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

js/app.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,10 @@ function load_hash(no_refresh) {
143143

144144
// force refresh
145145
if(!no_refresh) {
146-
if(refresh) clean_refresh(wvar.mode, true);
146+
if(refresh) {
147+
zoomed_in = false;
148+
clean_refresh(wvar.mode, true);
149+
}
147150
else if(refocus) {
148151
$(".row.active").removeClass('active');
149152
$(".vehicle"+vehicles[wvar.focus].uuid).addClass('active');

js/tracker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ function clean_refresh(text, force) {
351351

352352
car_index = 0;
353353
balloon_index = 0;
354-
stopFollow();
354+
if(!force) stopFollow();
355355

356356
// add loading spinner in the vehicle list
357357
$('#main .empty').parent().remove();

0 commit comments

Comments
 (0)