Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/wp-conte.../plugins/wp-file-.../lib/js/ui
File: workzone.js
/**
[0] Fix | Delete
* @class elfinderworkzone - elFinder container for nav and current directory
[1] Fix | Delete
* @author Dmitry (dio) Levashov
[2] Fix | Delete
**/
[3] Fix | Delete
jQuery.fn.elfinderworkzone = function(fm) {
[4] Fix | Delete
"use strict";
[5] Fix | Delete
var cl = 'elfinder-workzone';
[6] Fix | Delete
[7] Fix | Delete
this.not('.'+cl).each(function() {
[8] Fix | Delete
var wz = jQuery(this).addClass(cl),
[9] Fix | Delete
prevH = Math.round(wz.height()),
[10] Fix | Delete
parent = wz.parent(),
[11] Fix | Delete
setDelta = function() {
[12] Fix | Delete
wdelta = wz.outerHeight(true) - wz.height();
[13] Fix | Delete
},
[14] Fix | Delete
fitsize = function(e) {
[15] Fix | Delete
var height = parent.height() - wdelta,
[16] Fix | Delete
style = parent.attr('style'),
[17] Fix | Delete
curH = Math.round(wz.height());
[18] Fix | Delete
[19] Fix | Delete
if (e) {
[20] Fix | Delete
e.preventDefault();
[21] Fix | Delete
e.stopPropagation();
[22] Fix | Delete
}
[23] Fix | Delete
[24] Fix | Delete
parent.css('overflow', 'hidden')
[25] Fix | Delete
.children(':visible:not(.'+cl+')').each(function() {
[26] Fix | Delete
var ch = jQuery(this);
[27] Fix | Delete
[28] Fix | Delete
if (ch.css('position') != 'absolute' && ch.css('position') != 'fixed') {
[29] Fix | Delete
height -= ch.outerHeight(true);
[30] Fix | Delete
}
[31] Fix | Delete
});
[32] Fix | Delete
parent.attr('style', style || '');
[33] Fix | Delete
[34] Fix | Delete
height = Math.max(0, Math.round(height));
[35] Fix | Delete
if (prevH !== height || curH !== height) {
[36] Fix | Delete
prevH = Math.round(wz.height());
[37] Fix | Delete
wz.height(height);
[38] Fix | Delete
fm.trigger('wzresize');
[39] Fix | Delete
}
[40] Fix | Delete
},
[41] Fix | Delete
cssloaded = function() {
[42] Fix | Delete
wdelta = wz.outerHeight(true) - wz.height();
[43] Fix | Delete
fitsize();
[44] Fix | Delete
},
[45] Fix | Delete
wdelta;
[46] Fix | Delete
[47] Fix | Delete
setDelta();
[48] Fix | Delete
parent.on('resize.' + fm.namespace, fitsize);
[49] Fix | Delete
fm.one('cssloaded', cssloaded)
[50] Fix | Delete
.bind('uiresize', fitsize)
[51] Fix | Delete
.bind('themechange', setDelta);
[52] Fix | Delete
});
[53] Fix | Delete
return this;
[54] Fix | Delete
};
[55] Fix | Delete
[56] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function