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>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<br>
|
<br>
|
||||||
<input type="button" id="burst-calc-hide" name="burst-calc-submit"
|
<input type="button" id="burst-calc-use" name="burst-calc-submit"
|
||||||
value="Done"/ >
|
value="Use Values"/ >
|
||||||
|
<input type="button" id="burst-calc-close" name="burst-calc-submit"
|
||||||
|
value="Close"/ >
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- these are the burst calc constants -->
|
<!-- 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'});
|
$("#location_save_local").draggable({containment: '#map_canvas', handle: 'img.handle', snap: '#map_canvas'});
|
||||||
$("#run_pred_btn").button();
|
$("#run_pred_btn").button();
|
||||||
$("#req_sub_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
|
// see if we want an old prediction displayed
|
||||||
if ( current_uuid != '0' ) {
|
if ( current_uuid != '0' ) {
|
||||||
|
@ -672,13 +673,18 @@ function setupEventHandlers() {
|
||||||
$("#modelForm").hide();
|
$("#modelForm").hide();
|
||||||
$("#burst-calc").show();
|
$("#burst-calc").show();
|
||||||
});
|
});
|
||||||
$("#burst-calc-hide").click(function() {
|
$("#burst-calc-use").click(function() {
|
||||||
// Write the ascent rate and burst altitude to the launch card
|
// Write the ascent rate and burst altitude to the launch card
|
||||||
$("#ascent").val($("#ar").html());
|
$("#ascent").val($("#ar").html());
|
||||||
$("#burst").val($("#ba").html());
|
$("#burst").val($("#ba").html());
|
||||||
$("#burst-calc").hide();
|
$("#burst-calc").hide();
|
||||||
$("#modelForm").show();
|
$("#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
|
// attach onchange handlers to the lat/long boxes
|
||||||
$("#lat").change(function() {
|
$("#lat").change(function() {
|
||||||
plotClick();
|
plotClick();
|
||||||
|
|
Ładowanie…
Reference in New Issue