mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-11 15:14:36 +02:00
Onelinerz updates:
* Uses standard `itemFormat` * Uses format of {userName} vs {username} (case) * Has preview implemented as %TL2
This commit is contained in:
parent
2f22d91bcf
commit
5c826abd5b
4 changed files with 77 additions and 93 deletions
|
@ -319,7 +319,8 @@ exports.MenuModule = class MenuModule extends PluginModule {
|
|||
}
|
||||
|
||||
prepViewController(name, formId, mciMap, cb) {
|
||||
if(_.isUndefined(this.viewControllers[name])) {
|
||||
const needsCreated = _.isUndefined(this.viewControllers[name]);
|
||||
if(needsCreated) {
|
||||
const vcOpts = {
|
||||
client : this.client,
|
||||
formId : formId,
|
||||
|
@ -334,13 +335,13 @@ exports.MenuModule = class MenuModule extends PluginModule {
|
|||
};
|
||||
|
||||
return vc.loadFromMenuConfig(loadOpts, err => {
|
||||
return cb(err, vc);
|
||||
return cb(err, vc, true);
|
||||
});
|
||||
}
|
||||
|
||||
this.viewControllers[name].setFocus(true);
|
||||
|
||||
return cb(null, this.viewControllers[name]);
|
||||
return cb(null, this.viewControllers[name], false);
|
||||
}
|
||||
|
||||
prepViewControllerWithArt(name, formId, options, cb) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue