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: uploadButton.js
/**
[0] Fix | Delete
* @class elFinder toolbar's button tor upload file
[1] Fix | Delete
*
[2] Fix | Delete
* @author Dmitry (dio) Levashov
[3] Fix | Delete
**/
[4] Fix | Delete
jQuery.fn.elfinderuploadbutton = function(cmd) {
[5] Fix | Delete
"use strict";
[6] Fix | Delete
return this.each(function() {
[7] Fix | Delete
var fm = cmd.fm,
[8] Fix | Delete
button = jQuery(this).elfinderbutton(cmd)
[9] Fix | Delete
.off('click'),
[10] Fix | Delete
form = jQuery('<form></form>').appendTo(button),
[11] Fix | Delete
input = jQuery('<input type="file" multiple="true" title="'+cmd.fm.i18n('selectForUpload')+'"/>')
[12] Fix | Delete
.on('change', function() {
[13] Fix | Delete
var _input = jQuery(this);
[14] Fix | Delete
if (_input.val()) {
[15] Fix | Delete
fm.exec('upload', {input : _input.remove()[0]}, void(0), fm.cwd().hash);
[16] Fix | Delete
input.clone(true).appendTo(form);
[17] Fix | Delete
}
[18] Fix | Delete
})
[19] Fix | Delete
.on('dragover', function(e) {
[20] Fix | Delete
e.originalEvent.dataTransfer.dropEffect = 'copy';
[21] Fix | Delete
}),
[22] Fix | Delete
tm;
[23] Fix | Delete
[24] Fix | Delete
form.append(input.clone(true));
[25] Fix | Delete
[26] Fix | Delete
cmd.change(function() {
[27] Fix | Delete
tm && cancelAnimationFrame(tm);
[28] Fix | Delete
tm = requestAnimationFrame(function() {
[29] Fix | Delete
var toShow = cmd.disabled();
[30] Fix | Delete
if (form.is('visible')) {
[31] Fix | Delete
!toShow && form.hide();
[32] Fix | Delete
} else {
[33] Fix | Delete
toShow && form.show();
[34] Fix | Delete
}
[35] Fix | Delete
});
[36] Fix | Delete
})
[37] Fix | Delete
.change();
[38] Fix | Delete
});
[39] Fix | Delete
};
[40] Fix | Delete
[41] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function