Changeset 206


Ignore:
Timestamp:
Oct 27, 2006, 10:14:46 AM (13 years ago)
Author:
Nick Burch
Message:

Include source in display

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/npemap.org.uk/static/distantPostcodes.html

    r202 r206  
    1515var distant = document.getElementById("distant");
    1616
    17 function addProblem(id,postcode,matchpart,easting,northing,avg_e,avg_n) {
     17function addProblem(id,postcode,matchpart,easting,northing,avg_e,avg_n,source_id,source_name) {
     18        var disp_source = "NPE Submission";
     19        if(source_id == 1) {
     20                disp_source = "FreeThePostcode";
     21        }
     22
    1823        var div = document.createElement("div");
    19         div.appendChild(document.createTextNode(postcode + " (" + id + "), matched from " + matchpart + ", was at "));
     24        div.appendChild(document.createTextNode(postcode + " (" + id + " - " + disp_source + "), matched from " + matchpart + ", was at "));
    2025
    2126        var pl = document.createElement("a");
Note: See TracChangeset for help on using the changeset viewer.