Attemp to make chrome work with the launch site dropdown

pull/73/head
jonsowman 2010-06-13 14:58:18 +01:00
rodzic 28c8b73c9f
commit 83eb2cf546
2 zmienionych plików z 11 dodań i 5 usunięć

Wyświetl plik

@ -58,7 +58,7 @@ var clickMarker;
<div id="prediction_percent"></div> <div id="prediction_percent"></div>
<br> <br>
<span id="prediction_status"></span><br> <span id="prediction_status"></span><br>
<a><span id="showHideDebug_status">Toggle Debug</span></a></span> <a><span id="showHideDebug_status">Toggle Debug</span></a>
</div> </div>
<div id="error_window" class="box"> <div id="error_window" class="box">
@ -81,8 +81,8 @@ Cursor range from launch: <span id="cursor_pred_launchrange">?</span>km,
land: <span id="cursor_pred_landrange">?</span>km land: <span id="cursor_pred_landrange">?</span>km
</span> </span>
<br /> <br />
<a><span id="showHideDebug">Show Debug</span></a></span> | <a><span id="showHideDebug">Show Debug</span></a> |
<a><span id="showHideForm">Hide Launch Card</span></a></span> <a><span id="showHideForm">Hide Launch Card</span></a>
<br /> <br />
<a style="font-size: 10px" id="about_window_show">About this software</a> <a style="font-size: 10px" id="about_window_show">About this software</a>
</div> </div>

Wyświetl plik

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