File Editor
Directories:
.. (Back)
Files:
archive.js
back.js
chmod.js
colwidth.js
copy.js
cut.js
download.js
duplicate.js
edit.js
empty.js
extract.js
forward.js
fullscreen.js
getfile.js
help.js
hidden.js
hide.js
home.js
info.js
mkdir.js
mkfile.js
netmount.js
open.js
opendir.js
opennew.js
paste.js
places.js
preference.js
quicklook.js
quicklook.plugins.js
reload.js
rename.js
resize.js
restore.js
rm.js
search.js
selectall.js
selectinvert.js
selectnone.js
sort.js
undo.js
up.js
upload.js
view.js
Create New File
Create
Edit File: opennew.js
/** * @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(); } }; };
Save Changes
Rename File
Rename