File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -69,8 +69,10 @@ $(window).ready(function() {
6969 listScroll . refresh ( ) ;
7070
7171 // auto scroll when expanding an item
72- var eName = "." + e . parent ( ) . attr ( 'class' ) + " ." + e . attr ( 'class' ) . match ( / v e h i c l e \d + / ) [ 0 ] ;
73- listScroll . scrollToElement ( eName ) ;
72+ if ( $ ( '.portrait:visible' ) . length ) {
73+ var eName = "." + e . parent ( ) . attr ( 'class' ) + " ." + e . attr ( 'class' ) . match ( / v e h i c l e \d + / ) [ 0 ] ;
74+ listScroll . scrollToElement ( eName ) ;
75+ }
7476
7577 // pan to selected vehicle
7678 panTo ( parseInt ( e . attr ( 'class' ) . match ( / v e h i c l e ( \d + ) / ) [ 1 ] ) ) ;
@@ -129,9 +131,11 @@ $(window).ready(function() {
129131 field . attr ( 'disabled' , 'disabled' ) ;
130132 e . removeClass ( 'off' ) . addClass ( 'on' ) ;
131133
132- // push listen doc to habitat
134+ // push listener doc to habitat
135+ // this gets a station on the map, under the car marker
136+ // im still not sure its nessesary
133137 if ( ! CHASE_listenerSent ) {
134- ChaseCar . putListenerInfo ( callsign ) ;
138+ // ChaseCar.putListenerInfo(callsign);
135139 CHASE_listenerSent = true ;
136140 }
137141 // if already have a position push it to habitat
You can’t perform that action at this time.
0 commit comments