Changed burst calc buttons to alllow closing the calc with OR without writing the new values to the launch card
rodzic
4a71dba38e
commit
19afdb35c4
|
@ -355,8 +355,10 @@ google.load("jqueryui", "1.8.1");
|
|||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
<input type="button" id="burst-calc-hide" name="burst-calc-submit"
|
||||
value="Done"/ >
|
||||
<input type="button" id="burst-calc-use" name="burst-calc-submit"
|
||||
value="Use Values"/ >
|
||||
<input type="button" id="burst-calc-close" name="burst-calc-submit"
|
||||
value="Close"/ >
|
||||
</div>
|
||||
|
||||
<!-- these are the burst calc constants -->
|
||||
|
|
|
@ -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();
|
||||
|
|
Ładowanie…
Reference in New Issue