@@ -507,14 +507,14 @@ function updateVehicleInfo(index, position) {
507507 var ua = navigator . userAgent . toLowerCase ( ) ;
508508 if ( ua . indexOf ( 'iphone' ) > - 1 ) {
509509 coords_text = '<a id="launch_mapapp" href="http://maps.google.com/?q=' + position . gps_lat + ',' + position . gps_lon + '">'
510- + roundNumber ( position . gps_lat , 6 ) + ',' + roundNumber ( position . gps_lon , 6 ) + '</a>'
510+ + roundNumber ( position . gps_lat , 6 ) + ', ' + roundNumber ( position . gps_lon , 6 ) + '</a>'
511511 + ' <i class="icon-location"></i>' ;
512512 } else if ( ua . indexOf ( 'android' ) > - 1 ) {
513513 coords_text = '<a id="launch_mapapp" href="geo:0,0?q=' + position . gps_lat + ',' + position . gps_lon + '">'
514- + roundNumber ( position . gps_lat , 6 ) + ',' + roundNumber ( position . gps_lon , 6 ) + '</a>'
514+ + roundNumber ( position . gps_lat , 6 ) + ', ' + roundNumber ( position . gps_lon , 6 ) + '</a>'
515515 + ' <i class="icon-location"></i>' ;
516516 } else {
517- coords_text = roundNumber ( position . gps_lat , 6 ) + ',' + roundNumber ( position . gps_lon , 6 ) ;
517+ coords_text = roundNumber ( position . gps_lat , 6 ) + ', ' + roundNumber ( position . gps_lon , 6 ) ;
518518 }
519519 // start
520520 var a = '<div class="header"><span>' + vehicle_names [ index ] + '</span><i class="arrow"></i></div>'
@@ -534,7 +534,7 @@ function updateVehicleInfo(index, position) {
534534
535535 // mid for portrait
536536 var p = '<dt>' + position . gps_time + '</dt><dd>time</dd>'
537- + '<dt>' + coords_text + '</dt><dd>time </dd>'
537+ + '<dt>' + coords_text + '</dt><dd>coordinates </dd>'
538538 + c // recievers if any
539539 + '</dl>'
540540 + '</div>' // left
@@ -1209,9 +1209,9 @@ function update(response) {
12091209 }
12101210 map . savePosition ( ) ;
12111211 zoomed_in = true ;
1212- listScroll . refresh ( ) ;
12131212 }
12141213
1214+ if ( listScroll ) listScroll . refresh ( ) ;
12151215}
12161216
12171217function redrawPlot ( vehicle_index ) {
0 commit comments