diff --git a/predict/index.php b/predict/index.php index 8c4c0e3..06197ec 100644 --- a/predict/index.php +++ b/predict/index.php @@ -141,6 +141,8 @@ var hlTimeout = 5000; // high latency
diff --git a/predict/js/pred.js b/predict/js/pred.js index 2f5a29e..bd1201d 100644 --- a/predict/js/pred.js +++ b/predict/js/pred.js @@ -650,7 +650,13 @@ function setupEventHandlers() { plotClick(); }); $("#site").change(function() { - plotClick(); + if ( $("#site").val() == "Other" ) { + appendDebug("User requested locally saved launch sites"); + constructCookieLocationsTable("cusf_predictor"); + $("#location_save_local").fadeIn(); + } else { + plotClick(); + } }); $("#showHideDebug").click(function() { toggleWindow("scenario_template", "showHideDebug", "Show Debug", "Hide Debug"); @@ -688,6 +694,9 @@ function setupEventHandlers() { $("#req_close").click(function() { $("#location_save").fadeOut(); }); + $("#locations_close").click(function() { + $("#location_save_local").fadeOut(); + }); $("#req_open").click(function() { $("#req_lat").val($("#lat").val()); $("#req_lon").val($("#lon").val()); @@ -714,8 +723,10 @@ function constructCookieLocationsTable(cookie_name) { for (i=1; i<=idx; i++) { t += "