From 19afdb35c43096572ab390c2266fa8cdbe94c051 Mon Sep 17 00:00:00 2001 From: jonsowman Date: Wed, 12 Jan 2011 15:36:22 +0000 Subject: [PATCH] Changed burst calc buttons to alllow closing the calc with OR without writing the new values to the launch card --- predict/index.php | 6 ++++-- predict/js/pred.js | 10 ++++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/predict/index.php b/predict/index.php index 282f62d..24cb0e2 100644 --- a/predict/index.php +++ b/predict/index.php @@ -355,8 +355,10 @@ google.load("jqueryui", "1.8.1");
- + + diff --git a/predict/js/pred.js b/predict/js/pred.js index aabde48..0885c26 100644 --- a/predict/js/pred.js +++ b/predict/js/pred.js @@ -32,7 +32,8 @@ $(document).ready(function() { $("#location_save_local").draggable({containment: '#map_canvas', handle: 'img.handle', snap: '#map_canvas'}); $("#run_pred_btn").button(); $("#req_sub_btn").button(); - $("#burst-calc-hide").button(); + $("#burst-calc-use").button(); + $("#burst-calc-close").button(); // see if we want an old prediction displayed if ( current_uuid != '0' ) { @@ -672,13 +673,18 @@ function setupEventHandlers() { $("#modelForm").hide(); $("#burst-calc").show(); }); - $("#burst-calc-hide").click(function() { + $("#burst-calc-use").click(function() { // Write the ascent rate and burst altitude to the launch card $("#ascent").val($("#ar").html()); $("#burst").val($("#ba").html()); $("#burst-calc").hide(); $("#modelForm").show(); }); + $("#burst-calc-close").click(function() { + // Close the burst calc without doing anything + $("#burst-calc").hide(); + $("#modelForm").show(); + }); // attach onchange handlers to the lat/long boxes $("#lat").change(function() { plotClick();