Skip to content

Commit af657c7

Browse files
authored
Merge pull request #31 from LukePrior/testing
Few small fixes
2 parents cdba6f9 + 314ed55 commit af657c7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

js/tracker.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1232,7 +1232,7 @@ function updateVehicleInfo(vcallsign, newPosition) {
12321232
'<img class="'+((vehicle.vehicle_type=="car")?'car':'')+'" src="'+image+'" />' +
12331233
'<span class="vbutton path '+((vehicle.polyline_visible) ? 'active' : '')+'" data-vcallsign="'+vcallsign+'"' + ' style="top:'+(vehicle.image_src_size[1]+55)+'px">Path</span>' +
12341234
((vehicle.vehicle_type!="car") ? '<span class="sbutton" onclick="shareVehicle(\'' + vcallsign + '\')" style="top:'+(vehicle.image_src_size[1]+85)+'px">Share</span>' : '') +
1235-
((vehicle.vehicle_type!="car") ? '<span class="sbutton" onclick="window.open(\'https://sondehub.org/card/' + vcallsign + '\')" style="top:'+(vehicle.image_src_size[1]+115)+'px">Card</span>' : '') +
1235+
((vehicle.vehicle_type!="car") ? '<span class="sbutton" onclick="window.open(\'https://sondehub.org/card/' + vcallsign + '\')" style="top:'+(vehicle.image_src_size[1]+115)+'px">Plot</span>' : '') +
12361236
'<div class="left">' +
12371237
'<dl>';
12381238
//mobile
@@ -1244,7 +1244,7 @@ function updateVehicleInfo(vcallsign, newPosition) {
12441244
'<img class="'+((vehicle.vehicle_type=="car")?'car':'')+'" src="'+image+'" />' +
12451245
'<span class="vbutton path '+((vehicle.polyline_visible) ? 'active' : '')+'" data-vcallsign="'+vcallsign+'"' + ' style="top:55px">Path</span>' +
12461246
((vehicle.vehicle_type!="car") ? '<span class="sbutton" onclick="shareVehicle(\'' + vcallsign + '\')" style="top:85px">Share</span>' : '') +
1247-
((vehicle.vehicle_type!="car") ? '<span class="sbutton" onclick="window.open(\'https://sondehub.org/card/' + vcallsign + '\')" style="top:115px">Card</span>' : '') +
1247+
((vehicle.vehicle_type!="car") ? '<span class="sbutton" onclick="window.open(\'https://sondehub.org/card/' + vcallsign + '\')" style="top:115px">Plot</span>' : '') +
12481248
'<div class="left">' +
12491249
'<dl>';
12501250
var b = '</dl>' +
@@ -2624,7 +2624,9 @@ function refresh() {
26242624
}
26252625
}
26262626

2627-
document.getElementById("timeperiod").disabled = false;
2627+
if (ajax_inprogress_old != wvar.query) {
2628+
document.getElementById("timeperiod").disabled = false;
2629+
}
26282630

26292631
ajax_inprogress = true;
26302632

@@ -2750,9 +2752,7 @@ function refreshSingle(serial, first) {
27502752
function refreshSingleOld(serial) {
27512753

27522754
if (ajax_inprogress_old == wvar.query) {
2753-
if (vehicles.hasOwnProperty(wvar.query)) {
2754-
return;
2755-
}
2755+
return;
27562756
}
27572757

27582758
document.getElementById("timeperiod").disabled = true;

0 commit comments

Comments
 (0)