1
0
Fork 0

Misc improvements to DEPARTURE page to correct edge usecases

This commit is contained in:
legoboyvdlp R 2021-05-22 13:50:29 +01:00
parent 249ea57d29
commit 4146260147

View file

@ -401,7 +401,6 @@ var departurePage = {
} else {
me._transitions = me.depAirport[0].getSid(me.selectedSID).transitions;
}
me._transitions = me.depAirport[0].getSid(me.selectedSID).transitions;
me.transitions = sort(me._transitions,func(a,b) cmp(a,b));
append(me.transitions, "NO TRANS");
@ -532,10 +531,18 @@ var departurePage = {
}
},
scrollLeft: func() {
if (me.activePage == 0 and me.selectedRunway == nil) {
mcdu_message(me.computer, "NOT ALLOWED");
return;
}
me.activePage = !me.activePage;
me.updatePage();
},
scrollRight: func() {
if (me.activePage == 0 and me.selectedRunway == nil) {
mcdu_message(me.computer, "NOT ALLOWED");
return;
}
me.activePage = !me.activePage;
me.updatePage();
},