File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -1466,6 +1466,7 @@ function updateVehicleInfo(vcallsign, newPosition) {
1466
1466
if ( $ . type ( newPosition . callsign ) === "string" ) {
1467
1467
// Single callsign entry, as a string (chase cars)
1468
1468
callsign_list = newPosition . callsign ;
1469
+ num_callsigns = 1 ;
1469
1470
} else {
1470
1471
// Multiple callsigns, as an object
1471
1472
for ( var rxcall in newPosition . callsign ) {
@@ -1489,9 +1490,16 @@ function updateVehicleInfo(vcallsign, newPosition) {
1489
1490
}
1490
1491
callsign_list . push ( _new_call ) ; // catch cases where there are no fields
1491
1492
}
1493
+ num_callsigns = callsign_list . length ;
1492
1494
callsign_list = callsign_list . join ( "<br>" ) ;
1493
1495
}
1494
1496
1497
+ if ( num_callsigns > 1 ) {
1498
+ num_callsigns = " (" + num_callsigns + ")" ;
1499
+ } else {
1500
+ num_callsigns = "" ;
1501
+ }
1502
+
1495
1503
var timeNow = new Date ( ) ;
1496
1504
var timeSent = convert_time ( newPosition . gps_time ) ;
1497
1505
var timeChosen = null ;
@@ -1584,7 +1592,7 @@ function updateVehicleInfo(vcallsign, newPosition) {
1584
1592
'</div>' + // right
1585
1593
'</div>' + // data
1586
1594
'' ;
1587
- var c = '<dt class="receivers">Received <i class="friendly-dtime" data-timestamp=' + timeChosen + '></i> via:</dt><dd class="receivers">' +
1595
+ var c = '<dt class="receivers">Received <i class="friendly-dtime" data-timestamp=' + timeChosen + '></i> via' + num_callsigns + ' :</dt><dd class="receivers">' +
1588
1596
callsign_list + '</dd>' ;
1589
1597
1590
1598
if ( ! newPosition . callsign ) c = '' ;
You can’t perform that action at this time.
0 commit comments