Next at end of list goes to previous menu by default
This commit is contained in:
parent
50074d7765
commit
cc74616a93
|
@ -75,6 +75,7 @@ exports.getModule = class FileAreaList extends MenuModule {
|
||||||
|
|
||||||
this.filterCriteria = _.get(options, 'extraArgs.filterCriteria');
|
this.filterCriteria = _.get(options, 'extraArgs.filterCriteria');
|
||||||
this.fileList = _.get(options, 'extraArgs.fileList');
|
this.fileList = _.get(options, 'extraArgs.fileList');
|
||||||
|
this.lastFileNextExit = _.get(options, 'extraArgs.lastFileNextExit', true);
|
||||||
|
|
||||||
if(this.fileList) {
|
if(this.fileList) {
|
||||||
// we'll need to adjust position as well!
|
// 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
|
return this.displayBrowsePage(true, cb); // true=clerarScreen
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(this.lastFileNextExit) {
|
||||||
|
return this.prevMenu(cb);
|
||||||
|
}
|
||||||
|
|
||||||
return cb(null);
|
return cb(null);
|
||||||
},
|
},
|
||||||
prevFile : (formData, extraArgs, cb) => {
|
prevFile : (formData, extraArgs, cb) => {
|
||||||
|
|
Loading…
Reference in New Issue