* Added ability to pass a "menu result" from a menu when calling prev()/prevMenu()

* Ability to fully quit newscan with X key using new menu result functionality
This commit is contained in:
Bryan Ashby 2016-08-30 21:31:24 -06:00
parent 48aa0fa606
commit 0a3a62edf3
5 changed files with 35 additions and 9 deletions

View file

@ -103,6 +103,11 @@ function MessageListModule(options) {
} else {
return cb(null);
}
},
fullExit : function(formData, extraArgs, cb) {
self.menuResult = { fullExit : true };
return self.prevMenu(cb);
}
};
@ -249,4 +254,8 @@ MessageListModule.prototype.restoreSavedState = function(savedState) {
if(savedState) {
this.initialFocusIndex = savedState.initialFocusIndex;
}
};
};
MessageListModule.prototype.getMenuResult = function() {
return this.menuResult;
};