Add button for loading pass predictions in station page
Signed-off-by: Alfredos-Panagiotis Damkalis <fredy@fredy.gr>merge-requests/797/head
parent
f8920087ba
commit
81f388b4c8
|
@ -156,6 +156,7 @@ $(document).ready(function() {
|
|||
$('#antenna-filter').submit();
|
||||
});
|
||||
|
||||
function calculate_predictions(){
|
||||
// Pass predictions loading
|
||||
$('#loading').show();
|
||||
$.ajax({
|
||||
|
@ -337,6 +338,13 @@ $(document).ready(function() {
|
|||
$('#loading').hide();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
$('#calculate-predictions').click( function(){
|
||||
$('#calculate-button').toggle();
|
||||
$('#pass-predictions').toggle();
|
||||
calculate_predictions();
|
||||
});
|
||||
|
||||
// Open all visible predictions for scheduling
|
||||
$('#open-all').click(function() {
|
||||
|
|
|
@ -193,6 +193,15 @@
|
|||
|
||||
<hr>
|
||||
|
||||
<div id="calculate-button" class="row">
|
||||
<div class="col-md-12">
|
||||
<button type="button" id="calculate-predictions" class="btn btn-primary">
|
||||
Calculate Future Passes
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="pass-predictions" style="display:none;">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<h3>
|
||||
|
@ -278,6 +287,7 @@
|
|||
<a id="open-all" href="#">Open all for scheduling</a>.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Map Modal -->
|
||||
<div id="modal-lightbox" class="modal-lightbox">
|
||||
|
|
Loading…
Reference in New Issue