* Skeleton for user configuration
This commit is contained in:
parent
15d844262d
commit
ea8061ae85
|
@ -0,0 +1,40 @@
|
|||
/* jslint node: true */
|
||||
'use strict';
|
||||
|
||||
var MenuModule = require('./menu_module.js').MenuModule;
|
||||
var ViewController = require('./view_controller.js').ViewController;
|
||||
|
||||
var async = require('async');
|
||||
var assert = require('assert');
|
||||
var _ = require('lodash');
|
||||
|
||||
exports.getModule = UserConfigModule;
|
||||
|
||||
exports.moduleInfo = {
|
||||
name : 'User Configuration',
|
||||
desc : 'Module for user configuration',
|
||||
author : 'NuSkooler',
|
||||
};
|
||||
|
||||
function UserConfigModule(options) {
|
||||
MenuModule.call(this, options);
|
||||
|
||||
var self = this;
|
||||
|
||||
|
||||
}
|
||||
|
||||
require('util').inherits(UserConfigModule, MenuModule);
|
||||
|
||||
UserConfigModule.prototype.mciReady = function(mciData, cb) {
|
||||
var self = this;
|
||||
var vc = self.viewControllers.allViews = new ViewController( { client : self.client} );
|
||||
|
||||
async.series(
|
||||
[
|
||||
function callParentMciReady(callback) {
|
||||
UserConfigModule.super_.prototype.mciReady.call(self, mciData, callback);
|
||||
}
|
||||
]
|
||||
);
|
||||
};
|
|
@ -409,9 +409,6 @@
|
|||
},
|
||||
mainMenu: {
|
||||
art: MMENU
|
||||
/*options: {
|
||||
trailingLF: yes
|
||||
}*/
|
||||
desc: Main Menu
|
||||
prompt: menuCommand
|
||||
"submit" : [
|
||||
|
@ -441,6 +438,10 @@
|
|||
"value" : { "command" : "M" },
|
||||
"action" : "@menu:messageArea"
|
||||
},
|
||||
{
|
||||
value: { command: "C" }
|
||||
action: @menu:mainMenuUserConfig
|
||||
}
|
||||
{
|
||||
"value" : 1,
|
||||
"action" : "@menu:mainMenu"
|
||||
|
@ -455,7 +456,10 @@
|
|||
mainMenuUserStats: {
|
||||
art: STATUS
|
||||
options: { pause: true }
|
||||
next: mainMenu
|
||||
}
|
||||
mainMenuUserConfig: {
|
||||
module: @systemModule:user_config
|
||||
art: CONFSCR
|
||||
}
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
// Message Area Related
|
||||
|
|
|
@ -110,7 +110,7 @@ MessageListModule.prototype.mciReady = function(mciData, cb) {
|
|||
async.series(
|
||||
[
|
||||
function callParentMciReady(callback) {
|
||||
MessageListModule.super_.prototype.mciReady.call(this, mciData, callback);
|
||||
MessageListModule.super_.prototype.mciReady.call(self, mciData, callback);
|
||||
},
|
||||
function loadFromConfig(callback) {
|
||||
var loadOpts = {
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue