Changeset 615 for trunk


Ignore:
Timestamp:
Dec 15, 2007, 3:42:17 PM (12 years ago)
Author:
Nick Burch
Message:

Better source name lookup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/npemap.org.uk/static/tiles/mapTiles.js

    r562 r615  
    4545zooms[3] = 6;
    4646
     47var sources = new Array(1);
     48sources[0] = 'this site';
     49sources[1] = '<a href="http://www.freethepostcode.org/">freethepostcode.org</a>';
     50sources[2] = '<a href="http://www.npemap.org.uk">npemap</a>';
    4751
    4852var screenWidth = 0;
     
    153157   $('grid').value = grid;
    154158   $('grid2').value = grid;
    155    $('source_detail').innerHTML = ((source == 0) ? 'this site' : '<a href="http://www.freethepostcode.org/">freethepostcode.org</a>');
     159   $('source_detail').innerHTML = sources[source];
    156160   $('postcode_detail_window').style.display = 'block';
    157161   $('bad').style.display = '';
Note: See TracChangeset for help on using the changeset viewer.