PATH:
home
/
sarkas88.com
/
public_html
/
wp-content
/
plugins
/
wp-file-manager
/
lib
/
js
/
commands
/** * @class elFinder command "copy". * Put files in filemanager clipboard. * * @type elFinder.command * @author Dmitry (dio) Levashov */ elFinder.prototype.commands.copy = function() { "use strict"; this.shortcuts = [{ pattern : 'ctrl+c ctrl+insert' }]; this.getstate = function(select) { var sel = this.files(select), cnt = sel.length, filter = function(files) { var fres = true; return jQuery.grep(files, function(f) { fres = fres && f.read ? true : false; return fres; }); }; return cnt && filter(sel).length == cnt ? 0 : -1; }; this.exec = function(hashes) { var fm = this.fm, dfrd = jQuery.Deferred() .fail(function(error) { fm.error(error); }); jQuery.each(this.files(hashes), function(i, file) { if (! file.read) { return !dfrd.reject(['errCopy', file.name, 'errPerm']); } }); return dfrd.state() == 'rejected' ? dfrd : dfrd.resolve(fm.clipboard(this.hashes(hashes))); }; };
[-] download.js
[open]
[-] quicklook.plugins.js
[open]
[-] restore.js
[open]
[-] open.js
[open]
[-] archive.js
[open]
[-] home.js
[open]
[-] duplicate.js
[open]
[-] resize.js
[open]
[-] copy.js
[open]
[-] rename.js
[open]
[-] quicklook.js
[open]
[-] places.js
[open]
[-] colwidth.js
[open]
[-] selectall.js
[open]
[-] selectnone.js
[open]
[-] sort.js
[open]
[-] reload.js
[open]
[-] help.js
[open]
[-] chmod.js
[open]
[-] selectinvert.js
[open]
[-] hidden.js
[open]
[-] empty.js
[open]
[-] mkdir.js
[open]
[-] opendir.js
[open]
[-] opennew.js
[open]
[-] upload.js
[open]
[-] view.js
[open]
[-] fullscreen.js
[open]
[-] getfile.js
[open]
[-] extract.js
[open]
[-] back.js
[open]
[-] mkfile.js
[open]
[-] cut.js
[open]
[-] preference.js
[open]
[-] up.js
[open]
[-] hide.js
[open]
[-] rm.js
[open]
[-] forward.js
[open]
[+]
..
[-] search.js
[open]
[-] netmount.js
[open]
[-] edit.js
[open]
[-] undo.js
[open]
[-] paste.js
[open]
[-] info.js
[open]