Skip to content

Commit a4398e0

Browse files
author
xss
committed
fix issue with clicking on prediction landing
1 parent 4dd8a9e commit a4398e0

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ cd ..
4242
echo "Done!"
4343

4444
# cache fixes
45-
sed -i "s/{VER}/$VERSION/" index.html
46-
sed -i "s/{VER}/$VERSION/" service-worker.js
45+
sed -i'' "s/{VER}/$VERSION/" index.html
46+
sed -i'' "s/{VER}/$VERSION/" service-worker.js
4747

4848
echo "Done!"
4949

js/tracker.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2284,9 +2284,9 @@ function redrawPrediction(vcallsign) {
22842284
opacity: 0.5, // Was 0.4
22852285
weight: 3,
22862286
})//.addTo(map);
2287-
// vehicle.prediction_polyline.on('click', function (e) {
2288-
// mapInfoBox_handle_prediction_path(e);
2289-
// });
2287+
vehicle.prediction_polyline.on('click', function (e) {
2288+
mapInfoBox_handle_prediction_path(e);
2289+
});
22902290
}
22912291

22922292
vehicle.prediction_polyline.path_length = path_length;
@@ -2307,9 +2307,9 @@ function redrawPrediction(vcallsign) {
23072307
zIndexOffset: Z_SHADOW,
23082308
icon: predictionIcon,
23092309
})//addTo(map);
2310-
// vehicle.prediction_target.on('click', function (e) {
2311-
// mapInfoBox_handle_prediction(e);
2312-
// });
2310+
vehicle.prediction_target.on('click', function (e) {
2311+
mapInfoBox_handle_prediction(e);
2312+
});
23132313
}
23142314
vehicle.prediction_target.pdata = data[data.length-1];
23152315

0 commit comments

Comments
 (0)