This repository was archived by the owner on Jul 6, 2022. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -367,7 +367,6 @@ var SystemMap = {
367367 var to = SystemMap . systems . filter ( function ( s ) { return s . system . id == gate . toSystem ; } ) [ 0 ] ;
368368 jump = { type : gate . type } ;
369369 if ( gate . type == 'wormhole' ) {
370- console . log ( system )
371370 // exclude nodes that are outside this region from being anchored
372371 if ( from . system . regionID == system . regionID && to . system . regionID != system . regionID ) {
373372 exclude . push ( to . system . id ) ;
@@ -512,7 +511,12 @@ var SystemMap = {
512511 link_a . permitted_ships = Handlebars . helpers . jump_permitted_ships ( link_a . wormhole_data . mass_total ) ;
513512 link_b . permitted_ships = Handlebars . helpers . jump_permitted_ships ( link_b . wormhole_data . mass_total ) ;
514513
515- Data . ui . mapInfo . html ( $ ( Data . templates . wormhole_link_info ( { link_a : link_a , link_b : link_b } ) ) ) ;
514+ var locals = { link_a : link_a , link_b : link_b } ;
515+
516+ if ( link_a . source . system . id != Data . state . vicinity . systemId &&
517+ link_b . source . system . id != Data . state . vicinity . systemId ) locals . read_only = true ;
518+
519+ Data . ui . mapInfo . html ( $ ( Data . templates . wormhole_link_info ( locals ) ) ) ;
516520 Data . ui . mapInfo . children ( 'div.wormhole-link-details' )
517521 . fadeIn ( Data . config . uiSpeed )
518522 . delay ( Data . config . alertStay * 3 )
Original file line number Diff line number Diff line change 6868 {{ /if }}
6969
7070 <h4 class =" external" >External Resources</h4 >
71- <a class =" btn" target =" _blank" href =" http://evemaps.dotlan.net/{{ region }} /{{ name }} #const" >
71+ <a class =" btn" target =" _blank" href =" http://evemaps.dotlan.net/map/ {{ region }} /{{ name }} #const" >
7272 Dotlan
7373 <i class =" fa fa-external-link-square" ></i >
7474 </a >
You can’t perform that action at this time.
0 commit comments