: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
* @class elFinder command "reload"
* @author Dmitry (dio) Levashov
(elFinder.prototype.commands.reload = function() {
this.alwaysEnabled = true;
this.updateOnSelect = true;
pattern : 'ctrl+shift+r f5'
this.getstate = function() {
this.fm.bind('search searchend', function() {
search = this.type == 'search';
this.fm.bind('contextmenu', function(){
if (fm.options.sync >= 1000) {
node: jQuery('<span></span>')
.attr({title: fm.i18n('autoSync')})
.on('click touchstart', function(e){
if (e.type === 'touchstart' && e.originalEvent.touches.length > 1) {
.toggleClass('ui-state-disabled', fm.options.syncStart)
.parent().removeClass('ui-state-hover');
fm.options.syncStart = !fm.options.syncStart;
fm.autoSync(fm.options.syncStart? null : 'stop');
}).on('ready', function(){
jQuery(this).parent().toggleClass('ui-state-disabled', !fm.options.syncStart).css('pointer-events', 'auto');
timeout = setTimeout(function() {
fm.notify({type : 'reload', cnt : 1, hideCnt : true});
dfrd.always(function() { fm.notify({type : 'reload', cnt : -1}); });
return dfrd.always(function() {
jQuery('div.elfinder-toolbar > div.'+fm.res('class', 'searchbtn') + ' > span.ui-icon-search').click();
}).prototype = { forceLoad : true }; // this is required command