GRAYBYTE WORDPRESS FILE MANAGER7369

Server IP : 198.54.121.189 / Your IP : 216.73.216.140
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /home/giriqfky/trustyourlawyer.com/wp-content/plugins/wp-file-manager/lib/js/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/giriqfky/trustyourlawyer.com/wp-content/plugins/wp-file-manager/lib/js//elFinder.history.js
/**
 * @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);
	
};

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 10 2025 04:32:21
giriqfky / giriqfky
0755
commands
--
July 10 2025 04:32:21
giriqfky / giriqfky
0755
extras
--
July 10 2025 04:32:21
giriqfky / giriqfky
0755
i18n
--
July 10 2025 04:32:21
giriqfky / giriqfky
0755
proxy
--
July 10 2025 04:32:21
giriqfky / giriqfky
0755
ui
--
July 10 2025 04:32:21
giriqfky / giriqfky
0755
worker
--
July 10 2025 04:32:21
giriqfky / giriqfky
0755
.htaccess
0.41 KB
July 10 2025 04:32:21
giriqfky / giriqfky
0644
elFinder.command.js
8.073 KB
May 25 2020 10:48:08
giriqfky / giriqfky
0644
elFinder.history.js
2.366 KB
May 25 2020 10:48:08
giriqfky / giriqfky
0644
elFinder.js
283.724 KB
December 28 2021 14:26:10
giriqfky / giriqfky
0644
elFinder.mimetypes.js
26.947 KB
May 14 2020 14:55:48
giriqfky / giriqfky
0644
elFinder.options.js
38.958 KB
January 31 2022 10:51:08
giriqfky / giriqfky
0644
elFinder.options.netmount.js
1.553 KB
May 25 2020 10:48:08
giriqfky / giriqfky
0644
elFinder.resources.js
12.92 KB
May 25 2020 10:48:08
giriqfky / giriqfky
0644
elFinder.version.js
0.089 KB
December 28 2021 14:26:10
giriqfky / giriqfky
0644
elfinder.full.js
991.433 KB
May 25 2020 10:48:08
giriqfky / giriqfky
0644
elfinder.min.js
507.909 KB
May 25 2020 10:48:08
giriqfky / giriqfky
0644
jquery.dialogelfinder.js
3.172 KB
May 25 2020 10:48:08
giriqfky / giriqfky
0644
jquery.elfinder.js
11.314 KB
May 25 2020 10:48:08
giriqfky / giriqfky
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF