??????????????
??????????????
??????????????
??????????????
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/commands/undo.js
⬅ Kembali
/**
* @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();
}
};
};
Nama
Tipe
Ukuran
Diubah
Aksi
📜 archive.js
js
2.5 KB
2026-05-30 19:15
📜 back.js
js
512 B
2026-05-30 19:15
📜 chmod.js
js
9.4 KB
2026-05-30 19:15
📜 colwidth.js
js
480 B
2026-05-30 19:15
📜 copy.js
js
986 B
2026-05-30 19:15
📜 cut.js
js
1.1 KB
2026-05-30 19:15
📜 download.js
js
16.6 KB
2026-05-30 19:15
📜 duplicate.js
js
1.4 KB
2026-05-30 19:15
📜 edit.js
js
34.5 KB
2026-05-30 19:15
📜 empty.js
js
3.3 KB
2026-05-30 19:15
📜 extract.js
js
5.2 KB
2026-05-30 19:15
📜 forward.js
js
509 B
2026-05-30 19:15
📜 fullscreen.js
js
1 KB
2026-05-30 19:15
📜 getfile.js
js
4.1 KB
2026-05-30 19:15
📜 help.js
js
14.2 KB
2026-05-30 19:15
📜 hidden.js
js
276 B
2026-05-30 19:15
📜 hide.js
js
4.3 KB
2026-05-30 19:15
📜 home.js
js
528 B
2026-05-30 19:15
📜 info.js
js
13.1 KB
2026-05-30 19:15
📜 mkdir.js
js
2.5 KB
2026-05-30 19:15
📜 mkfile.js
js
1.6 KB
2026-05-30 19:15
📜 netmount.js
js
10.4 KB
2026-05-30 19:15
📜 open.js
js
6.8 KB
2026-05-30 19:15
📜 opendir.js
js
886 B
2026-05-30 19:15
📜 opennew.js
js
1.2 KB
2026-05-30 19:15
📜 paste.js
js
10.2 KB
2026-05-30 19:15
📜 places.js
js
773 B
2026-05-30 19:15
📜 preference.js
js
21.4 KB
2026-05-30 19:15
📜 quicklook.js
js
23.9 KB
2026-05-30 19:15
📜 quicklook.plugins.js
js
58.5 KB
2026-05-30 19:15
📜 reload.js
js
1.9 KB
2026-05-30 19:15
📜 rename.js
js
15.9 KB
2026-05-30 19:15
📜 resize.js
js
52.2 KB
2026-05-30 19:15
📜 restore.js
js
7.4 KB
2026-05-30 19:15
📜 rm.js
js
14.4 KB
2026-05-30 19:15
📜 search.js
js
4 KB
2026-05-30 19:15
📜 selectall.js
js
606 B
2026-05-30 19:15
📜 selectinvert.js
js
471 B
2026-05-30 19:15
📜 selectnone.js
js
530 B
2026-05-30 19:15
📜 sort.js
js
4.3 KB
2026-05-30 19:15
📜 undo.js
js
3.6 KB
2026-05-30 19:15
📜 up.js
js
710 B
2026-05-30 19:15
📜 upload.js
js
12.4 KB
2026-05-30 19:15
📜 view.js
js
2.8 KB
2026-05-30 19:15