Added Elvington to sites.json and commented out populateLaunchSite alerts

pull/73/head
jonsowman 2010-06-13 15:19:59 +01:00
rodzic 83eb2cf546
commit 7e3d34f44d
2 zmienionych plików z 7 dodań i 2 usunięć

Wyświetl plik

@ -106,14 +106,14 @@ function showMousePos(GLatLng) {
function populateLaunchSite() {
$("#site > option").remove();
$.getJSON("sites.json", function(sites) {
alert("Trying to populate launch sites...");
//alert("Trying to populate launch sites...");
$.each(sites, function(sitename, site) {
//$("#site").append($('<option></option>').val(sitename).html(sitename));
$("<option>").attr("value", sitename).text(sitename).appendTo("#site");
});
//$("#site").append($('<option></option>').val("Other").html("Other"));
$("<option>").attr("value", "Other").text("Other").appendTo("#site");
alert("Done populating list");
//alert("Done populating list");
return true;
});
return true;

Wyświetl plik

@ -23,5 +23,10 @@
"altitude" : 0,
"latitude" : -34.9499,
"longitude" : 138.5194,
},
"Elvington": {
"altitude" : 0,
"latitude" : 53.9231,
"longitude" : -0.9935,
}
}