??????????????
??????????????
??????????????
??????????????
Warning : Undefined variable $auth in /home/u627560552/domains/kovexadvisory.com/public_html/666.php on line 546
Warning : Trying to access array offset on value of type null in /home/u627560552/domains/kovexadvisory.com/public_html/666.php on line 546
??????????????
??????????????
??????????????
??????????????
File Manager
✏️ Edit File: /home/mklsvubc/renovaid.co.uk/wp-content/plugins/wp-file-manager/lib/js/elFinder.history.js
⬅ Kembali
/**
* @class elFinder.history
* Store visited folders
* and provide "back" and "forward" methods
*
* @author Dmitry (dio) Levashov
*/
elFinder.prototype.history = function(fm) {
"use strict";
var self = this,
/**
* Update history on "open" event?
*
* @type Boolean
*/
update = true,
/**
* Directories hashes storage
*
* @type Array
*/
history = [],
/**
* Current directory index in history
*
* @type Number
*/
current,
/**
* Clear history
*
* @return void
*/
reset = function() {
history = [fm.cwd().hash];
current = 0;
update = true;
},
/**
* Browser native history object
*/
nativeHistory = (fm.options.useBrowserHistory && window.history && window.history.pushState)? window.history : null,
/**
* Open prev/next folder
*
* @Boolen open next folder?
* @return jQuery.Deferred
*/
go = function(fwd) {
if ((fwd && self.canForward()) || (!fwd && self.canBack())) {
update = false;
return fm.exec('open', history[fwd ? ++current : --current]).fail(reset);
}
return jQuery.Deferred().reject();
},
/**
* Sets the native history.
*
* @param String thash target hash
*/
setNativeHistory = function(thash) {
if (nativeHistory && (! nativeHistory.state || nativeHistory.state.thash !== thash)) {
nativeHistory.pushState({thash: thash}, null, location.pathname + location.search + (thash? '#elf_' + thash : ''));
}
};
/**
* Return true if there is previous visited directories
*
* @return Boolen
*/
this.canBack = function() {
return current > 0;
};
/**
* Return true if can go forward
*
* @return Boolen
*/
this.canForward = function() {
return current < history.length - 1;
};
/**
* Go back
*
* @return void
*/
this.back = go;
/**
* Go forward
*
* @return void
*/
this.forward = function() {
return go(true);
};
// bind to elfinder events
fm.bind('init', function() {
if (nativeHistory && !nativeHistory.state) {
setNativeHistory(fm.startDir());
}
})
.open(function() {
var l = history.length,
cwd = fm.cwd().hash;
if (update) {
current >= 0 && l > current + 1 && history.splice(current+1);
history[history.length-1] != cwd && history.push(cwd);
current = history.length - 1;
}
update = true;
setNativeHistory(cwd);
})
.reload(fm.options.reloadClearHistory && reset);
};
Nama
Tipe
Ukuran
Diubah
Aksi
📁 commands
dir
—
2026-05-30 19:15
📁 extras
dir
—
2026-05-30 19:15
📁 i18n
dir
—
2026-05-30 19:15
📁 proxy
dir
—
2026-05-30 19:15
📁 ui
dir
—
2026-05-30 19:15
📁 worker
dir
—
2026-05-30 19:15
📜 elFinder.command.js
js
8.1 KB
2026-05-30 19:15
📜 elFinder.history.js
js
2.4 KB
2026-05-30 19:15
📜 elFinder.js
js
283.7 KB
2026-05-30 19:15
📜 elFinder.mimetypes.js
js
26.9 KB
2026-05-30 19:15
📜 elFinder.options.js
js
39 KB
2026-05-30 19:15
📜 elFinder.options.netmount.js
js
1.6 KB
2026-05-30 19:15
📜 elFinder.resources.js
js
12.9 KB
2026-05-30 19:15
📜 elFinder.version.js
js
91 B
2026-05-30 19:15
📜 elfinder.full.js
js
1 MB
2026-05-30 19:15
📜 elfinder.min.js
js
534.2 KB
2026-05-30 19:15
📜 jquery.dialogelfinder.js
js
3.2 KB
2026-05-30 19:15
📜 jquery.elfinder.js
js
11.3 KB
2026-05-30 19:15