Commit 23f263b3 authored by rswindell's avatar rswindell
Browse files

For Nelgin: if text/menu/xtrn#_head.* exists, display it before the

auto-generated program list for that section # or the custom menu for that
section.
parent 7c8b572c
......@@ -97,8 +97,12 @@ function external_program_menu(xsec)
break;
}
if(bbs.menu_exists("xtrn" + (xtrn_area.sec_list[xsec].number+1))) {
bbs.menu("xtrn" + (xtrn_area.sec_list[xsec].number+1));
var secnum = xtrn_area.sec_list[xsec].number+1
if(bbs.menu_exists("xtrn" + secnum + "_head")) {
bbs.menu("xtrn" + secnum + "_head");
}
if(bbs.menu_exists("xtrn" + secnum)) {
bbs.menu("xtrn" + secnum);
}
else {
var multicolumn = options.multicolumn && prog_list.length > options.singlecolumn_height;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment