Edit File by line
/home/barbar84/www/wp-conte.../plugins/file-man.../applicat.../library/js/commands
File: fullscreen.js
/**
[0] Fix | Delete
* @class elFinder command "fullscreen"
[1] Fix | Delete
* elFinder node to full scrren mode
[2] Fix | Delete
*
[3] Fix | Delete
* @author Naoki Sawada
[4] Fix | Delete
**/
[5] Fix | Delete
[6] Fix | Delete
elFinder.prototype.commands.fullscreen = function() {
[7] Fix | Delete
"use strict";
[8] Fix | Delete
var self = this,
[9] Fix | Delete
fm = this.fm,
[10] Fix | Delete
update = function(e, data) {
[11] Fix | Delete
var full;
[12] Fix | Delete
e.preventDefault();
[13] Fix | Delete
e.stopPropagation();
[14] Fix | Delete
if (data && data.fullscreen) {
[15] Fix | Delete
full = (data.fullscreen === 'on');
[16] Fix | Delete
self.update(void(0), full);
[17] Fix | Delete
self.title = fm.i18n(full ? 'reinstate' : 'cmdfullscreen');
[18] Fix | Delete
}
[19] Fix | Delete
};
[20] Fix | Delete
[21] Fix | Delete
this.alwaysEnabled = true;
[22] Fix | Delete
this.updateOnSelect = false;
[23] Fix | Delete
this.syncTitleOnChange = true;
[24] Fix | Delete
this.value = false;
[25] Fix | Delete
[26] Fix | Delete
this.options = {
[27] Fix | Delete
ui : 'fullscreenbutton'
[28] Fix | Delete
};
[29] Fix | Delete
[30] Fix | Delete
this.getstate = function() {
[31] Fix | Delete
return 0;
[32] Fix | Delete
};
[33] Fix | Delete
[34] Fix | Delete
this.exec = function() {
[35] Fix | Delete
var node = fm.getUI().get(0),
[36] Fix | Delete
full = (node === fm.toggleFullscreen(node));
[37] Fix | Delete
self.title = fm.i18n(full ? 'reinstate' : 'cmdfullscreen');
[38] Fix | Delete
self.update(void(0), full);
[39] Fix | Delete
return $.Deferred().resolve();
[40] Fix | Delete
};
[41] Fix | Delete
[42] Fix | Delete
fm.bind('init', function() {
[43] Fix | Delete
fm.getUI().off('resize.' + fm.namespace, update).on('resize.' + fm.namespace, update);
[44] Fix | Delete
});
[45] Fix | Delete
};
[46] Fix | Delete
[47] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function