From d89ada0cdb5e750626bef574b87d128b28a5c2a6 Mon Sep 17 00:00:00 2001 From: jonsowman Date: Sun, 20 Jun 2010 17:18:30 +0100 Subject: [PATCH] Removed UpdateLaunchSite() which is now an unused function --- predict/js/pred.js | 30 +----------------------------- 1 file changed, 1 insertion(+), 29 deletions(-) diff --git a/predict/js/pred.js b/predict/js/pred.js index 3bae917..a89a78f 100644 --- a/predict/js/pred.js +++ b/predict/js/pred.js @@ -510,7 +510,7 @@ function appendDebug(appendage, clear) { } // keep the debug window scrolled to bottom scrollToBottom("scenario_template"); - } +} function scrollToBottom(div_id) { $("#"+div_id).animate({scrollTop: $("#"+div_id)[0].scrollHeight}); @@ -666,34 +666,6 @@ function POSIXtoHM(timestamp) { return str; } -// launch site dropdown switcher -function UpdateLaunchSite(id) { - txtLat = document.getElementById("lat"); - txtLon = document.getElementById("lon"); - switch (id) { - case 0: // Churchill - txtLat.value = "52.2135"; - txtLon.value = "0.0964"; - break; - case 1: // EARS - txtLat.value = "52.2511"; - txtLon.value = "-0.0927"; - break; - case 2: // Glenrothes (SpeedEvil) - txtLat.value = "56.13"; - txtLon.value = "-3.06"; - break; - case 3: // Bujaraloz, Monegros (gerard) - txtLat.value = "41.495773"; - txtLon.value = "-0.157968"; - break; - case 4: // Adelaide (Juxta) - txtLat.value = "-34.9499"; - txtLon.value = "138.5194"; - - } -} - function SetSiteOther() { $("#site").val("Other"); }