* Message view prev/next

* Message view up/down movement
* Some new experimental MCI codes
* Put cursor @ top of document in MLTEV preview mode
* Fix fse finishedLoading()
* Menus can have names, clients have current status
This commit is contained in:
Bryan Ashby 2015-09-07 00:12:01 -06:00
parent 1f3948d84c
commit 6517f50e0c
8 changed files with 64 additions and 90 deletions

View file

@ -24,7 +24,7 @@ function MenuModule(options) {
this.menuConfig = options.menuConfig;
this.menuConfig.options = options.menuConfig.options || {};
this.menuMethods = {}; // methods called from @method's
this.initViewControllers();
this.initSequence = function() {
@ -138,16 +138,6 @@ function MenuModule(options) {
menuUtil.handleAction(self.client, null, self.menuConfig);
}
};
this.setMenuStatus = function(status) {
self.menuStatus = status;
};
if(_.isString(this.menuConfig.status)) {
self.setMenuStatus(self.menuConfig.status);
} else {
self.setMenuStatus('Browsing menus');
}
}
require('util').inherits(MenuModule, PluginModule);
@ -158,6 +148,12 @@ MenuModule.prototype.enter = function(client) {
this.client = client;
assert(_.isObject(client));
if(_.isString(this.menuConfig.status)) {
this.client.currentStatus = this.menuConfig.status;
} else {
this.client.currentStatus = 'Browsing menus';
}
this.initSequence();
};