Edit File by line
/home/barbar84/www/wp-conte.../plugins/file-man.../applicat.../library/js/commands
File: opendir.js
/**
[0] Fix | Delete
* @class elFinder command "opendir"
[1] Fix | Delete
* Enter parent folder
[2] Fix | Delete
*
[3] Fix | Delete
* @author Naoki Sawada
[4] Fix | Delete
**/
[5] Fix | Delete
elFinder.prototype.commands.opendir = function() {
[6] Fix | Delete
"use strict";
[7] Fix | Delete
this.alwaysEnabled = true;
[8] Fix | Delete
[9] Fix | Delete
this.getstate = function() {
[10] Fix | Delete
var sel = this.fm.selected(),
[11] Fix | Delete
cnt = sel.length,
[12] Fix | Delete
wz;
[13] Fix | Delete
if (cnt !== 1) {
[14] Fix | Delete
return -1;
[15] Fix | Delete
}
[16] Fix | Delete
wz = this.fm.getUI('workzone');
[17] Fix | Delete
return wz.hasClass('elfinder-search-result')? 0 : -1;
[18] Fix | Delete
};
[19] Fix | Delete
[20] Fix | Delete
this.exec = function(hashes) {
[21] Fix | Delete
var fm = this.fm,
[22] Fix | Delete
dfrd = $.Deferred(),
[23] Fix | Delete
files = this.files(hashes),
[24] Fix | Delete
cnt = files.length,
[25] Fix | Delete
hash, pcheck = null;
[26] Fix | Delete
[27] Fix | Delete
if (!cnt || !files[0].phash) {
[28] Fix | Delete
return dfrd.reject();
[29] Fix | Delete
}
[30] Fix | Delete
[31] Fix | Delete
hash = files[0].phash;
[32] Fix | Delete
fm.trigger('searchend', { noupdate: true });
[33] Fix | Delete
fm.request({
[34] Fix | Delete
data : {cmd : 'open', target : hash},
[35] Fix | Delete
notify : {type : 'open', cnt : 1, hideCnt : true},
[36] Fix | Delete
syncOnFail : false
[37] Fix | Delete
});
[38] Fix | Delete
[39] Fix | Delete
return dfrd;
[40] Fix | Delete
};
[41] Fix | Delete
[42] Fix | Delete
};
[43] Fix | Delete
[44] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function