mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-06 12:47:13 +02:00
MenuModule.reload(), updated @systemMethod:reloadMenu(), and notes
This commit is contained in:
parent
1f396e198e
commit
118cb97487
2 changed files with 8 additions and 4 deletions
|
@ -87,11 +87,9 @@ function nextMenu(callingMenu, formData, extraArgs, cb) {
|
|||
});
|
||||
}
|
||||
|
||||
// :TODO: prev/nextConf, prev/nextArea should use a NYI MenuModule.redraw() or such -- avoid pop/goto() hack!
|
||||
// :TODO: need redrawMenu() and MenuModule.redraw()
|
||||
function reloadMenu(menu, cb) {
|
||||
const prevMenu = menu.client.menuStack.pop();
|
||||
prevMenu.instance.leave();
|
||||
menu.client.menuStack.goto(prevMenu.name, cb);
|
||||
return menu.reload(cb);
|
||||
}
|
||||
|
||||
function prevConf(callingMenu, formData, extraArgs, cb) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue