mirror of
https://github.com/Studio-42/elFinder
synced 2026-06-08 12:37:09 +00:00
23 lines
444 B
JavaScript
23 lines
444 B
JavaScript
"use strict";
|
|
/**
|
|
* @class elFinder command "back"
|
|
* Open last visited folder
|
|
*
|
|
* @author Dmitry (dio) Levashov
|
|
**/
|
|
elFinder.prototype.commands.back = function() {
|
|
this.alwaysEnabled = true;
|
|
this.updateOnSelect = false;
|
|
this.shortcuts = [{
|
|
pattern : 'ctrl+left backspace'
|
|
}];
|
|
|
|
this.getstate = function() {
|
|
return this.fm.history.canBack() ? 0 : -1;
|
|
}
|
|
|
|
this.exec = function() {
|
|
return this.fm.history.back();
|
|
}
|
|
|
|
} |