Add close button and airframes.org link
This commit is contained in:
parent
3298eb77b4
commit
0983766a6c
3 changed files with 40 additions and 1 deletions
|
|
@ -219,6 +219,19 @@ function initialize() {
|
|||
minHeight: 50
|
||||
});
|
||||
|
||||
$('#close-button').on('click', function() {
|
||||
if (SelectedPlane !== null) {
|
||||
var selectedPlane = Planes[SelectedPlane];
|
||||
SelectedPlane = null;
|
||||
selectedPlane.selected = null;
|
||||
selectedPlane.clearLines();
|
||||
selectedPlane.updateMarker();
|
||||
refreshSelected();
|
||||
refreshHighlighted();
|
||||
$('#selected_infoblock').hide();
|
||||
}
|
||||
});
|
||||
|
||||
// this is a little hacky, but the best, most consitent way of doing this. change the margin bottom of the table container to the height of the overlay
|
||||
$('#selected_infoblock').on('resize', function() {
|
||||
$('#sidebar_canvas').css('margin-bottom', $('#selected_infoblock').height() + 'px');
|
||||
|
|
@ -1540,7 +1553,7 @@ function setSelectedInfoBlockVisibility() {
|
|||
else {
|
||||
$('#selected_infoblock').hide();
|
||||
$('#sidebar_canvas').css('margin-bottom', 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Reposition selected plane info box if it overlaps plane marker
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue