mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-08-05 17:28:06 +02:00
* More progress on theming esp. in relation to .config menu module sections
This commit is contained in:
parent
a6cd6bd3b9
commit
3038213c09
6 changed files with 94 additions and 44 deletions
|
@ -25,6 +25,8 @@ exports.getModule = LastCallersModule;
|
|||
// :TODO:
|
||||
// * config.evenRowSGR (optional)
|
||||
|
||||
// :TODO: convert to using %XY system for finding row count
|
||||
|
||||
function LastCallersModule(options) {
|
||||
MenuModule.call(this, options);
|
||||
|
||||
|
@ -32,7 +34,13 @@ function LastCallersModule(options) {
|
|||
this.menuConfig = options.menuConfig;
|
||||
|
||||
this.rows = 10;
|
||||
|
||||
}
|
||||
|
||||
util.inherits(LastCallersModule, MenuModule);
|
||||
|
||||
LastCallersModule.prototype.enter = function(client) {
|
||||
LastCallersModule.super_.prototype.enter.call(this, client);
|
||||
|
||||
if(_.isObject(this.menuConfig.config)) {
|
||||
if(_.isNumber(this.menuConfig.config.rows)) {
|
||||
this.rows = Math.max(1, this.menuConfig.config.rows);
|
||||
|
@ -41,12 +49,6 @@ function LastCallersModule(options) {
|
|||
this.dateTimeFormat = this.menuConfig.config.dateTimeFormat;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
util.inherits(LastCallersModule, MenuModule);
|
||||
|
||||
LastCallersModule.prototype.enter = function(client) {
|
||||
LastCallersModule.super_.prototype.enter.call(this, client);
|
||||
|
||||
// we need the client to init this for theming
|
||||
if(!_.isString(this.dateTimeFormat)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue