X7ROOT File Manager
Current Path:
/home/hamdjcne/public_html/wp-content/plugins/wp-file-manager/lib/js/commands
home
/
hamdjcne
/
public_html
/
wp-content
/
plugins
/
wp-file-manager
/
lib
/
js
/
commands
/
ðŸ“
..
📄
archive.js
(2.47 KB)
📄
back.js
(512 B)
📄
chmod.js
(9.37 KB)
📄
colwidth.js
(480 B)
📄
copy.js
(986 B)
📄
cut.js
(1.12 KB)
📄
download.js
(16.61 KB)
📄
duplicate.js
(1.36 KB)
📄
edit.js
(34.48 KB)
📄
empty.js
(3.32 KB)
📄
extract.js
(5.18 KB)
📄
forward.js
(509 B)
📄
fullscreen.js
(1.05 KB)
📄
getfile.js
(4.07 KB)
📄
help.js
(14.21 KB)
📄
hidden.js
(276 B)
📄
hide.js
(4.26 KB)
📄
home.js
(528 B)
📄
info.js
(13.13 KB)
📄
mkdir.js
(2.51 KB)
📄
mkfile.js
(1.64 KB)
📄
netmount.js
(10.43 KB)
📄
open.js
(6.78 KB)
📄
opendir.js
(886 B)
📄
opennew.js
(1.21 KB)
📄
paste.js
(10.17 KB)
📄
places.js
(773 B)
📄
preference.js
(21.37 KB)
📄
quicklook.js
(23.87 KB)
📄
quicklook.plugins.js
(58.51 KB)
📄
reload.js
(1.86 KB)
📄
rename.js
(15.92 KB)
📄
resize.js
(52.17 KB)
📄
restore.js
(7.45 KB)
📄
rm.js
(14.42 KB)
📄
search.js
(4.01 KB)
📄
selectall.js
(606 B)
📄
selectinvert.js
(471 B)
📄
selectnone.js
(530 B)
📄
sort.js
(4.32 KB)
📄
undo.js
(3.62 KB)
📄
up.js
(710 B)
📄
upload.js
(12.4 KB)
📄
view.js
(2.8 KB)
Editing: undo.js
/** * @class elFinder command "undo" * Undo previous commands * * @author Naoki Sawada **/ elFinder.prototype.commands.undo = function() { "use strict"; var self = this, fm = this.fm, setTitle = function(undo) { if (undo) { self.title = fm.i18n('cmdundo') + ' ' + fm.i18n('cmd'+undo.cmd); self.state = 0; } else { self.title = fm.i18n('cmdundo'); self.state = -1; } self.change(); }, cmds = []; this.alwaysEnabled = true; this.updateOnSelect = false; this.shortcuts = [{ pattern : 'ctrl+z' }]; this.syncTitleOnChange = true; this.getstate = function() { return cmds.length? 0 : -1; }; this.setUndo = function(undo, redo) { var _undo = {}; if (undo) { if (jQuery.isPlainObject(undo) && undo.cmd && undo.callback) { Object.assign(_undo, undo); if (redo) { delete redo.undo; _undo.redo = redo; } else { fm.getCommand('redo').setRedo(null); } cmds.push(_undo); setTitle(_undo); } } }; this.exec = function() { var redo = fm.getCommand('redo'), dfd = jQuery.Deferred(), undo, res, _redo = {}; if (cmds.length) { undo = cmds.pop(); if (undo.redo) { Object.assign(_redo, undo.redo); delete undo.redo; } else { _redo = null; } dfd.done(function() { if (_redo) { redo.setRedo(_redo, undo); } }); setTitle(cmds.length? cmds[cmds.length-1] : void(0)); res = undo.callback(); if (res && res.done) { res.done(function() { dfd.resolve(); }).fail(function() { dfd.reject(); }); } else { dfd.resolve(); } if (cmds.length) { this.update(0, cmds[cmds.length - 1].name); } else { this.update(-1, ''); } } else { dfd.reject(); } return dfd; }; fm.bind('exec', function(e) { var data = e.data || {}; if (data.opts && data.opts._userAction) { if (data.dfrd && data.dfrd.done) { data.dfrd.done(function(res) { if (res && res.undo && res.redo) { res.undo.redo = res.redo; self.setUndo(res.undo); } }); } } }); }; /** * @class elFinder command "redo" * Redo previous commands * * @author Naoki Sawada **/ elFinder.prototype.commands.redo = function() { "use strict"; var self = this, fm = this.fm, setTitle = function(redo) { if (redo && redo.callback) { self.title = fm.i18n('cmdredo') + ' ' + fm.i18n('cmd'+redo.cmd); self.state = 0; } else { self.title = fm.i18n('cmdredo'); self.state = -1; } self.change(); }, cmds = []; this.alwaysEnabled = true; this.updateOnSelect = false; this.shortcuts = [{ pattern : 'shift+ctrl+z ctrl+y' }]; this.syncTitleOnChange = true; this.getstate = function() { return cmds.length? 0 : -1; }; this.setRedo = function(redo, undo) { if (redo === null) { cmds = []; setTitle(); } else { if (redo && redo.cmd && redo.callback) { if (undo) { redo.undo = undo; } cmds.push(redo); setTitle(redo); } } }; this.exec = function() { var undo = fm.getCommand('undo'), dfd = jQuery.Deferred(), redo, res, _undo = {}, _redo = {}; if (cmds.length) { redo = cmds.pop(); if (redo.undo) { Object.assign(_undo, redo.undo); Object.assign(_redo, redo); delete _redo.undo; dfd.done(function() { undo.setUndo(_undo, _redo); }); } setTitle(cmds.length? cmds[cmds.length-1] : void(0)); res = redo.callback(); if (res && res.done) { res.done(function() { dfd.resolve(); }).fail(function() { dfd.reject(); }); } else { dfd.resolve(); } return dfd; } else { return dfd.reject(); } }; };
Upload File
Create Folder