Help on message reading #29

This commit is contained in:
Bryan Ashby 2015-11-28 12:17:14 -07:00
parent 065254419c
commit 87b6e245ce
1 changed files with 9 additions and 5 deletions

View File

@ -291,7 +291,7 @@ function FullScreenEditorModule(options) {
); );
}; };
this.redrawScreen = function(options, cb) { this.redrawScreen = function(cb) {
var comps = [ 'header', 'body' ]; var comps = [ 'header', 'body' ];
var art = self.menuConfig.config.art; var art = self.menuConfig.config.art;
@ -325,6 +325,8 @@ function FullScreenEditorModule(options) {
comps.forEach(function artComp(n) { comps.forEach(function artComp(n) {
self.viewControllers[n].redrawAll(); self.viewControllers[n].redrawAll();
}); });
callback(null);
} }
], ],
function complete(err) { function complete(err) {
@ -414,6 +416,7 @@ function FullScreenEditorModule(options) {
], ],
function complete(err) { function complete(err) {
if(err) { if(err) {
// :TODO: This needs properly handled!
console.log(err) console.log(err)
} else { } else {
self.isReady = true; self.isReady = true;
@ -636,9 +639,10 @@ function FullScreenEditorModule(options) {
theme.displayThemeArt( { name : self.menuConfig.config.art.help, client : self.client }, theme.displayThemeArt( { name : self.menuConfig.config.art.help, client : self.client },
function helpDisplayed(err, artData) { function helpDisplayed(err, artData) {
self.client.waitForKeyPress(function keyPress(ch, key) { self.client.waitForKeyPress(function keyPress(ch, key) {
self.redrawScreen(); self.redrawScreen(function redrawn(err) {
self.viewControllers[self.getFooterName()].setFocus(true); self.viewControllers[self.getFooterName()].setFocus(true);
}); });
});
} }
); );
}; };
@ -754,7 +758,7 @@ function FullScreenEditorModule(options) {
self.updateEditModePosition(body.getEditPosition()); self.updateEditModePosition(body.getEditPosition());
self.observeEditorEvents(); self.observeEditorEvents();
} };
this.menuMethods = { this.menuMethods = {
headerSubmit : function(formData, extraArgs) { headerSubmit : function(formData, extraArgs) {