Edit File by line
/home/barbar84/www/wp-conte.../plugins/file-man.../applicat.../library/js/commands
File: places.js
/**
[0] Fix | Delete
* @class elFinder command "places"
[1] Fix | Delete
* Regist to Places
[2] Fix | Delete
*
[3] Fix | Delete
* @author Naoki Sawada
[4] Fix | Delete
**/
[5] Fix | Delete
elFinder.prototype.commands.places = function() {
[6] Fix | Delete
"use strict";
[7] Fix | Delete
var self = this,
[8] Fix | Delete
fm = this.fm,
[9] Fix | Delete
filter = function(hashes) {
[10] Fix | Delete
var fres = true;
[11] Fix | Delete
return $.grep(self.files(hashes), function(f) {
[12] Fix | Delete
fres = fres && f.mime == 'directory' ? true : false;
[13] Fix | Delete
return fres;
[14] Fix | Delete
});
[15] Fix | Delete
},
[16] Fix | Delete
places = null;
[17] Fix | Delete
[18] Fix | Delete
this.getstate = function(select) {
[19] Fix | Delete
var sel = this.hashes(select),
[20] Fix | Delete
cnt = sel.length;
[21] Fix | Delete
[22] Fix | Delete
return places && cnt && cnt == filter(sel).length ? 0 : -1;
[23] Fix | Delete
};
[24] Fix | Delete
[25] Fix | Delete
this.exec = function(hashes) {
[26] Fix | Delete
var files = this.files(hashes);
[27] Fix | Delete
places.trigger('regist', [ files ]);
[28] Fix | Delete
return $.Deferred().resolve();
[29] Fix | Delete
};
[30] Fix | Delete
[31] Fix | Delete
fm.one('load', function(){
[32] Fix | Delete
places = fm.ui.places;
[33] Fix | Delete
});
[34] Fix | Delete
[35] Fix | Delete
};
[36] Fix | Delete
[37] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function