PATH:
home
/
sarkas88.com
/
public_html
/
wp-content
/
plugins
/
wp-file-manager
/
lib
/
js
/
commands
/** * @class elFinder command "opennew" * Open folder in new window * * @author Naoki Sawada **/ elFinder.prototype.commands.opennew = function() { "use strict"; var fm = this.fm; this.shortcuts = [{ pattern : (typeof(fm.options.getFileCallback) === 'function'? 'shift+' : '') + 'ctrl+enter' }]; this.getstate = function(select) { var sel = this.files(select), cnt = sel.length; return cnt === 1 ? (sel[0].mime === 'directory' && sel[0].read? 0 : -1) : -1; }; this.exec = function(hashes) { var dfrd = jQuery.Deferred(), files = this.files(hashes), cnt = files.length, opts = this.options, file, loc, url, win; // open folder to new tab (window) if (cnt === 1 && (file = files[0]) && file.mime === 'directory') { loc = window.location; if (opts.url) { url = opts.url; } else { url = loc.pathname; } if (opts.useOriginQuery) { if (!url.match(/\?/)) { url += loc.search; } else if (loc.search) { url += '&' + loc.search.substr(1); } } url += '#elf_' + file.hash; win = window.open(url, '_blank'); setTimeout(function() { win.focus(); }, 1000); return dfrd.resolve(); } else { return dfrd.reject(); } }; };
[-] 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]