mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-10 14:44:40 +02:00
* 'action' must be part of a *menu* not a prompt (they remain generic)
* Menus and prompts in better harmony * Very eary WIP of converting login/apply/etc. to new system. These can now be helper scirpts and not full MenuModules (very simple!)
This commit is contained in:
parent
bac2f63c1a
commit
8db72430d3
7 changed files with 270 additions and 267 deletions
|
@ -17,8 +17,8 @@ var _ = require('lodash');
|
|||
|
||||
var stripJsonComments = require('strip-json-comments');
|
||||
|
||||
exports.loadMenu = loadMenu;
|
||||
exports.getFormConfig = getFormConfig;
|
||||
exports.loadMenu = loadMenu;
|
||||
exports.getFormConfigByIDAndMap = getFormConfigByIDAndMap;
|
||||
|
||||
|
||||
function loadModJSON(fileName, cb) {
|
||||
|
@ -181,7 +181,7 @@ function loadMenu2(options, cb) {
|
|||
);
|
||||
}
|
||||
|
||||
function getFormConfig(menuConfig, formId, mciMap, cb) {
|
||||
function getFormConfigByIDAndMap(menuConfig, formId, mciMap, cb) {
|
||||
assert(_.isObject(menuConfig));
|
||||
|
||||
if(!_.isObject(menuConfig.form)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue