From 7d8f124a3483c1ff1d3b9d2933bac39b72fe2def Mon Sep 17 00:00:00 2001 From: jonsowman Date: Tue, 8 Jun 2010 14:43:19 +0100 Subject: [PATCH] populateFormByUUID complete, populates form with relevant scenario data when viewing old predictions closes #35 --- predict/js/pred.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/predict/js/pred.js b/predict/js/pred.js index e960199..c3fde14 100644 --- a/predict/js/pred.js +++ b/predict/js/pred.js @@ -37,9 +37,14 @@ function populateFormByUUID(pred_uuid) { $("#day").val(data.day); $("#month").attr("selectedIndex", data.month-1); $("#year").val(data.year); + // we have to use [] notation for + // values that have -s in them $("#ascent").val(data['ascent-rate']); $("#drag").val(data['descent-rate']); $("#burst").val(data.burst); + $("#software").val(data.software); + $("#delta_lat").val(data['lat-delta']); + $("#delta_lon").val(data['lon-delta']); // now sort the map out SetSiteOther(); plotClick();