Skip to content
Snippets Groups Projects
Commit b71a8184 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Merge branch 'xtrnhead' into 'master'

If using xtrn_head, display section name/header as well

See merge request main/sbbs!67
parents b6584f1e 62c559ef
No related branches found
No related tags found
2 merge requests!463MRC mods by Codefenix (2024-10-20),!67If using xtrn_head, display section name/header as well
......@@ -124,12 +124,15 @@ function external_program_menu(xsec)
var show_header = true;
var secnum = xtrn_area.sec_list[xsec].number+1;
var seccode = xtrn_area.sec_list[xsec].code;
if(!bbs.menu("xtrn" + secnum + "_head", P_NOERROR) &&
!bbs.menu("xtrn" + seccode + "_head", P_NOERROR)) {
show_header = !bbs.menu("xtrn_head", P_NOERROR);
}
else
if (bbs.menu("xtrn" + secnum + "_head", P_NOERROR) {
show_header = false;
} else if (bbs.menu("xtrn" + seccode + "_head", P_NOERROR)) {
show_header = false;
} else {
bbs.menu("xtrn_head", P_NOERROR);
}
if(bbs.menu("xtrn" + secnum, P_NOERROR) || bbs.menu("xtrn" + seccode, P_NOERROR)) {
if(!bbs.menu("xtrn" + secnum + "_tail", P_NOERROR) &&
!bbs.menu("xtrn" + seccode + "_tail", P_NOERROR)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment