populateFormByUUID complete, populates form with relevant scenario data when viewing old predictions closes #35
rodzic
55c53c625c
commit
7d8f124a34
|
@ -37,9 +37,14 @@ function populateFormByUUID(pred_uuid) {
|
||||||
$("#day").val(data.day);
|
$("#day").val(data.day);
|
||||||
$("#month").attr("selectedIndex", data.month-1);
|
$("#month").attr("selectedIndex", data.month-1);
|
||||||
$("#year").val(data.year);
|
$("#year").val(data.year);
|
||||||
|
// we have to use [] notation for
|
||||||
|
// values that have -s in them
|
||||||
$("#ascent").val(data['ascent-rate']);
|
$("#ascent").val(data['ascent-rate']);
|
||||||
$("#drag").val(data['descent-rate']);
|
$("#drag").val(data['descent-rate']);
|
||||||
$("#burst").val(data.burst);
|
$("#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
|
// now sort the map out
|
||||||
SetSiteOther();
|
SetSiteOther();
|
||||||
plotClick();
|
plotClick();
|
||||||
|
|
Ładowanie…
Reference in New Issue