Next at end of list goes to previous menu by default

This commit is contained in:
Bryan Ashby 2018-01-26 21:34:10 -07:00
parent 50074d7765
commit cc74616a93
1 changed files with 5 additions and 0 deletions

View File

@ -75,6 +75,7 @@ exports.getModule = class FileAreaList extends MenuModule {
this.filterCriteria = _.get(options, 'extraArgs.filterCriteria');
this.fileList = _.get(options, 'extraArgs.fileList');
this.lastFileNextExit = _.get(options, 'extraArgs.lastFileNextExit', true);
if(this.fileList) {
// we'll need to adjust position as well!
@ -103,6 +104,10 @@ exports.getModule = class FileAreaList extends MenuModule {
return this.displayBrowsePage(true, cb); // true=clerarScreen
}
if(this.lastFileNextExit) {
return this.prevMenu(cb);
}
return cb(null);
},
prevFile : (formData, extraArgs, cb) => {