diff --git a/build.sh b/build.sh index b57bf0a..ecabd0e 100755 --- a/build.sh +++ b/build.sh @@ -42,8 +42,8 @@ cd .. echo "Done!" # cache fixes -sed -i "s/{VER}/$VERSION/" index.html -sed -i "s/{VER}/$VERSION/" service-worker.js +sed -i'' "s/{VER}/$VERSION/" index.html +sed -i'' "s/{VER}/$VERSION/" service-worker.js echo "Done!" diff --git a/js/tracker.js b/js/tracker.js index 0ade15b..e85a58b 100644 --- a/js/tracker.js +++ b/js/tracker.js @@ -2284,9 +2284,9 @@ function redrawPrediction(vcallsign) { opacity: 0.5, // Was 0.4 weight: 3, })//.addTo(map); - // vehicle.prediction_polyline.on('click', function (e) { - // mapInfoBox_handle_prediction_path(e); - // }); + vehicle.prediction_polyline.on('click', function (e) { + mapInfoBox_handle_prediction_path(e); + }); } vehicle.prediction_polyline.path_length = path_length; @@ -2307,9 +2307,9 @@ function redrawPrediction(vcallsign) { zIndexOffset: Z_SHADOW, icon: predictionIcon, })//addTo(map); - // vehicle.prediction_target.on('click', function (e) { - // mapInfoBox_handle_prediction(e); - // }); + vehicle.prediction_target.on('click', function (e) { + mapInfoBox_handle_prediction(e); + }); } vehicle.prediction_target.pdata = data[data.length-1];