* 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:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user