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/commands
File: help.js
/**
[0] Fix | Delete
* @class elFinder command "help"
[1] Fix | Delete
* "About" dialog
[2] Fix | Delete
*
[3] Fix | Delete
* @author Dmitry (dio) Levashov
[4] Fix | Delete
**/
[5] Fix | Delete
(elFinder.prototype.commands.help = function() {
[6] Fix | Delete
"use strict";
[7] Fix | Delete
var fm = this.fm,
[8] Fix | Delete
self = this,
[9] Fix | Delete
linktpl = '<div class="elfinder-help-link"> <a href="{url}">{link}</a></div>',
[10] Fix | Delete
linktpltgt = '<div class="elfinder-help-link"> <a href="{url}" target="_blank">{link}</a></div>',
[11] Fix | Delete
atpl = '<div class="elfinder-help-team"><div>{author}</div>{work}</div>',
[12] Fix | Delete
url = /\{url\}/,
[13] Fix | Delete
link = /\{link\}/,
[14] Fix | Delete
author = /\{author\}/,
[15] Fix | Delete
work = /\{work\}/,
[16] Fix | Delete
r = 'replace',
[17] Fix | Delete
prim = 'ui-priority-primary',
[18] Fix | Delete
sec = 'ui-priority-secondary',
[19] Fix | Delete
lic = 'elfinder-help-license',
[20] Fix | Delete
tab = '<li class="' + fm.res('class', 'tabstab') + ' elfinder-help-tab-{id}"><a href="#'+fm.namespace+'-help-{id}" class="ui-tabs-anchor">{title}</a></li>',
[21] Fix | Delete
html = ['<div class="ui-tabs ui-widget ui-widget-content ui-corner-all elfinder-help">',
[22] Fix | Delete
'<ul class="ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-top">'],
[23] Fix | Delete
stpl = '<div class="elfinder-help-shortcut"><div class="elfinder-help-shortcut-pattern">{pattern}</div> {descrip}</div>',
[24] Fix | Delete
sep = '<div class="elfinder-help-separator"></div>',
[25] Fix | Delete
selfUrl = jQuery('base').length? fm.escape(document.location.href.replace(/#.*$/, '')) : '',
[26] Fix | Delete
clTabActive = fm.res('class', 'tabsactive'),
[27] Fix | Delete
[28] Fix | Delete
getTheme = function() {
[29] Fix | Delete
var src;
[30] Fix | Delete
if (fm.theme && fm.theme.author) {
[31] Fix | Delete
src = atpl[r]('elfinder-help-team', 'elfinder-help-team elfinder-help-term-theme')[r](author, fm.i18n(fm.theme.author) + (fm.theme.email? ' &lt;'+fm.theme.email+'&gt;' : ''))[r](work, fm.i18n('theme') + ' ('+fm.i18n(fm.theme.name)+')');
[32] Fix | Delete
} else {
[33] Fix | Delete
src = '<div class="elfinder-help-team elfinder-help-term-theme" style="display:none"></div>';
[34] Fix | Delete
}
[35] Fix | Delete
return src;
[36] Fix | Delete
},
[37] Fix | Delete
[38] Fix | Delete
about = function() {
[39] Fix | Delete
html.push('<div id="'+fm.namespace+'-help-about" class="ui-tabs-panel ui-widget-content ui-corner-bottom"><div class="elfinder-help-logo"></div>');
[40] Fix | Delete
html.push('<h3>elFinder</h3>');
[41] Fix | Delete
html.push('<div class="'+prim+'">'+fm.i18n('webfm')+'</div>');
[42] Fix | Delete
html.push('<div class="'+sec+'">'+fm.i18n('ver')+': '+fm.version+'</div>');
[43] Fix | Delete
html.push('<div class="'+sec+'">'+fm.i18n('protocolver')+': <span class="apiver"></span></div>');
[44] Fix | Delete
html.push('<div class="'+sec+'">jQuery/jQuery UI: '+jQuery().jquery+'/'+jQuery.ui.version+'</div>');
[45] Fix | Delete
[46] Fix | Delete
html.push(sep);
[47] Fix | Delete
[48] Fix | Delete
html.push(linktpltgt[r](url, 'https://studio-42.github.io/elFinder/')[r](link, fm.i18n('homepage')));
[49] Fix | Delete
html.push(linktpltgt[r](url, 'https://github.com/Studio-42/elFinder/wiki')[r](link, fm.i18n('docs')));
[50] Fix | Delete
html.push(linktpltgt[r](url, 'https://github.com/Studio-42/elFinder')[r](link, fm.i18n('github')));
[51] Fix | Delete
//html.push(linktpltgt[r](url, 'http://twitter.com/elrte_elfinder')[r](link, fm.i18n('twitter')));
[52] Fix | Delete
[53] Fix | Delete
html.push(sep);
[54] Fix | Delete
[55] Fix | Delete
html.push('<div class="'+prim+'">'+fm.i18n('team')+'</div>');
[56] Fix | Delete
[57] Fix | Delete
html.push(atpl[r](author, 'Dmitry "dio" Levashov &lt;dio@std42.ru&gt;')[r](work, fm.i18n('chiefdev')));
[58] Fix | Delete
html.push(atpl[r](author, 'Naoki Sawada &lt;hypweb+elfinder@gmail.com&gt;')[r](work, fm.i18n('developer')));
[59] Fix | Delete
html.push(atpl[r](author, 'Troex Nevelin &lt;troex@fury.scancode.ru&gt;')[r](work, fm.i18n('maintainer')));
[60] Fix | Delete
html.push(atpl[r](author, 'Alexey Sukhotin &lt;strogg@yandex.ru&gt;')[r](work, fm.i18n('contributor')));
[61] Fix | Delete
[62] Fix | Delete
if (fm.i18[fm.lang].translator) {
[63] Fix | Delete
jQuery.each(fm.i18[fm.lang].translator.split(', '), function() {
[64] Fix | Delete
html.push(atpl[r](author, jQuery.trim(this))[r](work, fm.i18n('translator')+' ('+fm.i18[fm.lang].language+')'));
[65] Fix | Delete
});
[66] Fix | Delete
}
[67] Fix | Delete
[68] Fix | Delete
html.push(getTheme());
[69] Fix | Delete
[70] Fix | Delete
html.push(sep);
[71] Fix | Delete
html.push('<div class="'+lic+'">'+fm.i18n('icons')+': Pixelmixer, <a href="http://p.yusukekamiyamane.com" target="_blank">Fugue</a>, <a href="https://icons8.com" target="_blank">Icons8</a></div>');
[72] Fix | Delete
[73] Fix | Delete
html.push(sep);
[74] Fix | Delete
html.push('<div class="'+lic+'">Licence: 3-clauses BSD Licence</div>');
[75] Fix | Delete
html.push('<div class="'+lic+'">Copyright © 2009-2021, Studio 42</div>');
[76] Fix | Delete
html.push('<div class="'+lic+'">„ …'+fm.i18n('dontforget')+' ”</div>');
[77] Fix | Delete
html.push('</div>');
[78] Fix | Delete
},
[79] Fix | Delete
shortcuts = function() {
[80] Fix | Delete
var sh = fm.shortcuts();
[81] Fix | Delete
// shortcuts tab
[82] Fix | Delete
html.push('<div id="'+fm.namespace+'-help-shortcuts" class="ui-tabs-panel ui-widget-content ui-corner-bottom">');
[83] Fix | Delete
[84] Fix | Delete
if (sh.length) {
[85] Fix | Delete
html.push('<div class="ui-widget-content elfinder-help-shortcuts">');
[86] Fix | Delete
jQuery.each(sh, function(i, s) {
[87] Fix | Delete
html.push(stpl.replace(/\{pattern\}/, s[0]).replace(/\{descrip\}/, s[1]));
[88] Fix | Delete
});
[89] Fix | Delete
[90] Fix | Delete
html.push('</div>');
[91] Fix | Delete
} else {
[92] Fix | Delete
html.push('<div class="elfinder-help-disabled">'+fm.i18n('shortcutsof')+'</div>');
[93] Fix | Delete
}
[94] Fix | Delete
[95] Fix | Delete
[96] Fix | Delete
html.push('</div>');
[97] Fix | Delete
[98] Fix | Delete
},
[99] Fix | Delete
help = function() {
[100] Fix | Delete
// help tab
[101] Fix | Delete
html.push('<div id="'+fm.namespace+'-help-help" class="ui-tabs-panel ui-widget-content ui-corner-bottom">');
[102] Fix | Delete
html.push('<a href="https://github.com/Studio-42/elFinder/wiki" target="_blank" class="elfinder-dont-panic"><span>DON\'T PANIC</span></a>');
[103] Fix | Delete
html.push('</div>');
[104] Fix | Delete
// end help
[105] Fix | Delete
},
[106] Fix | Delete
useInteg = false,
[107] Fix | Delete
integrations = function() {
[108] Fix | Delete
useInteg = true;
[109] Fix | Delete
html.push('<div id="'+fm.namespace+'-help-integrations" class="ui-tabs-panel ui-widget-content ui-corner-bottom"></div>');
[110] Fix | Delete
},
[111] Fix | Delete
useDebug = false,
[112] Fix | Delete
debug = function() {
[113] Fix | Delete
useDebug = true;
[114] Fix | Delete
// debug tab
[115] Fix | Delete
html.push('<div id="'+fm.namespace+'-help-debug" class="ui-tabs-panel ui-widget-content ui-corner-bottom">');
[116] Fix | Delete
html.push('<div class="ui-widget-content elfinder-help-debug"><ul></ul></div>');
[117] Fix | Delete
html.push('</div>');
[118] Fix | Delete
// end debug
[119] Fix | Delete
},
[120] Fix | Delete
debugRender = function() {
[121] Fix | Delete
var render = function(elm, obj) {
[122] Fix | Delete
jQuery.each(obj, function(k, v) {
[123] Fix | Delete
elm.append(jQuery('<dt></dt>').text(k));
[124] Fix | Delete
if (typeof v === 'undefined') {
[125] Fix | Delete
elm.append(jQuery('<dd></dd>').append(jQuery('<span></span>').text('undfined')));
[126] Fix | Delete
} else if (typeof v === 'object' && !v) {
[127] Fix | Delete
elm.append(jQuery('<dd></dd>').append(jQuery('<span></span>').text('null')));
[128] Fix | Delete
} else if (typeof v === 'object' && (jQuery.isPlainObject(v) || v.length)) {
[129] Fix | Delete
elm.append( jQuery('<dd></dd>').append(render(jQuery('<dl></dl>'), v)));
[130] Fix | Delete
} else {
[131] Fix | Delete
elm.append(jQuery('<dd></dd>').append(jQuery('<span></span>').text((v && typeof v === 'object')? '[]' : (v? v : '""'))));
[132] Fix | Delete
}
[133] Fix | Delete
});
[134] Fix | Delete
return elm;
[135] Fix | Delete
},
[136] Fix | Delete
cnt = debugUL.children('li').length,
[137] Fix | Delete
targetL, target, tabId,
[138] Fix | Delete
info, lastUL, lastDIV;
[139] Fix | Delete
[140] Fix | Delete
if (self.debug.options || self.debug.debug) {
[141] Fix | Delete
if (cnt >= 5) {
[142] Fix | Delete
lastUL = debugUL.children('li:last');
[143] Fix | Delete
lastDIV = debugDIV.children('div:last');
[144] Fix | Delete
if (lastDIV.is(':hidden')) {
[145] Fix | Delete
lastUL.remove();
[146] Fix | Delete
lastDIV.remove();
[147] Fix | Delete
} else {
[148] Fix | Delete
lastUL.prev().remove();
[149] Fix | Delete
lastDIV.prev().remove();
[150] Fix | Delete
}
[151] Fix | Delete
}
[152] Fix | Delete
[153] Fix | Delete
tabId = fm.namespace + '-help-debug-' + (+new Date());
[154] Fix | Delete
targetL = jQuery('<li></li>').html('<a href="'+selfUrl+'#'+tabId+'">'+self.debug.debug.cmd+'</a>').prependTo(debugUL);
[155] Fix | Delete
target = jQuery('<div id="'+tabId+'"></div>').data('debug', self.debug);
[156] Fix | Delete
[157] Fix | Delete
targetL.on('click.debugrender', function() {
[158] Fix | Delete
var debug = target.data('debug');
[159] Fix | Delete
target.removeData('debug');
[160] Fix | Delete
if (debug) {
[161] Fix | Delete
target.hide();
[162] Fix | Delete
if (debug.debug) {
[163] Fix | Delete
info = jQuery('<fieldset>').append(jQuery('<legend></legend>').text('debug'), render(jQuery('<dl></dl>'), debug.debug));
[164] Fix | Delete
target.append(info);
[165] Fix | Delete
}
[166] Fix | Delete
if (debug.options) {
[167] Fix | Delete
info = jQuery('<fieldset>').append(jQuery('<legend></legend>').text('options'), render(jQuery('<dl></dl>'), debug.options));
[168] Fix | Delete
target.append(info);
[169] Fix | Delete
}
[170] Fix | Delete
target.show();
[171] Fix | Delete
}
[172] Fix | Delete
targetL.off('click.debugrender');
[173] Fix | Delete
});
[174] Fix | Delete
[175] Fix | Delete
debugUL.after(target);
[176] Fix | Delete
[177] Fix | Delete
opened && debugDIV.tabs('refresh');
[178] Fix | Delete
}
[179] Fix | Delete
},
[180] Fix | Delete
content = '',
[181] Fix | Delete
opened, tabInteg, integDIV, tabDebug, debugDIV, debugUL;
[182] Fix | Delete
[183] Fix | Delete
this.alwaysEnabled = true;
[184] Fix | Delete
this.updateOnSelect = false;
[185] Fix | Delete
this.state = -1;
[186] Fix | Delete
[187] Fix | Delete
this.shortcuts = [{
[188] Fix | Delete
pattern : 'f1',
[189] Fix | Delete
description : this.title
[190] Fix | Delete
}];
[191] Fix | Delete
[192] Fix | Delete
fm.bind('load', function() {
[193] Fix | Delete
var parts = self.options.view || ['about', 'shortcuts', 'help', 'integrations', 'debug'],
[194] Fix | Delete
i, helpSource, tabBase, tabNav, tabs, delta;
[195] Fix | Delete
[196] Fix | Delete
// remove 'preference' tab, it moved to command 'preference'
[197] Fix | Delete
if ((i = jQuery.inArray('preference', parts)) !== -1) {
[198] Fix | Delete
parts.splice(i, 1);
[199] Fix | Delete
}
[200] Fix | Delete
[201] Fix | Delete
// debug tab require jQueryUI Tabs Widget
[202] Fix | Delete
if (! jQuery.fn.tabs) {
[203] Fix | Delete
if ((i = jQuery.inArray(parts, 'debug')) !== -1) {
[204] Fix | Delete
parts.splice(i, 1);
[205] Fix | Delete
}
[206] Fix | Delete
}
[207] Fix | Delete
[208] Fix | Delete
jQuery.each(parts, function(i, title) {
[209] Fix | Delete
html.push(tab[r](/\{id\}/g, title)[r](/\{title\}/, fm.i18n(title)));
[210] Fix | Delete
});
[211] Fix | Delete
[212] Fix | Delete
html.push('</ul>');
[213] Fix | Delete
[214] Fix | Delete
jQuery.inArray('about', parts) !== -1 && about();
[215] Fix | Delete
jQuery.inArray('shortcuts', parts) !== -1 && shortcuts();
[216] Fix | Delete
if (jQuery.inArray('help', parts) !== -1) {
[217] Fix | Delete
helpSource = fm.i18nBaseUrl + 'help/%s.html.js';
[218] Fix | Delete
help();
[219] Fix | Delete
}
[220] Fix | Delete
jQuery.inArray('integrations', parts) !== -1 && integrations();
[221] Fix | Delete
jQuery.inArray('debug', parts) !== -1 && debug();
[222] Fix | Delete
[223] Fix | Delete
html.push('</div>');
[224] Fix | Delete
content = jQuery(html.join(''));
[225] Fix | Delete
[226] Fix | Delete
content.find('.ui-tabs-nav li')
[227] Fix | Delete
.on('mouseenter mouseleave', function(e) {
[228] Fix | Delete
jQuery(this).toggleClass('ui-state-hover', e.type === 'mouseenter');
[229] Fix | Delete
})
[230] Fix | Delete
.on('focus blur', 'a', function(e) {
[231] Fix | Delete
jQuery(e.delegateTarget).toggleClass('ui-state-focus', e.type === 'focusin');
[232] Fix | Delete
})
[233] Fix | Delete
.children()
[234] Fix | Delete
.on('click', function(e) {
[235] Fix | Delete
var link = jQuery(this);
[236] Fix | Delete
[237] Fix | Delete
e.preventDefault();
[238] Fix | Delete
e.stopPropagation();
[239] Fix | Delete
[240] Fix | Delete
link.parent().addClass(clTabActive).siblings().removeClass(clTabActive);
[241] Fix | Delete
content.children('.ui-tabs-panel').hide().filter(link.attr('href')).show();
[242] Fix | Delete
})
[243] Fix | Delete
.filter(':first').trigger('click');
[244] Fix | Delete
[245] Fix | Delete
if (useInteg) {
[246] Fix | Delete
tabInteg = content.find('.elfinder-help-tab-integrations').hide();
[247] Fix | Delete
integDIV = content.find('#'+fm.namespace+'-help-integrations').hide().append(jQuery('<div class="elfinder-help-integrations-desc"></div>').html(fm.i18n('integrationWith')));
[248] Fix | Delete
fm.bind('helpIntegration', function(e) {
[249] Fix | Delete
var ul = integDIV.children('ul:first'),
[250] Fix | Delete
data, elm, cmdUL, cmdCls;
[251] Fix | Delete
if (e.data) {
[252] Fix | Delete
if (jQuery.isPlainObject(e.data)) {
[253] Fix | Delete
data = Object.assign({
[254] Fix | Delete
link: '',
[255] Fix | Delete
title: '',
[256] Fix | Delete
banner: ''
[257] Fix | Delete
}, e.data);
[258] Fix | Delete
if (data.title || data.link) {
[259] Fix | Delete
if (!data.title) {
[260] Fix | Delete
data.title = data.link;
[261] Fix | Delete
}
[262] Fix | Delete
if (data.link) {
[263] Fix | Delete
elm = jQuery('<a></a>').attr('href', data.link).attr('target', '_blank').text(data.title);
[264] Fix | Delete
} else {
[265] Fix | Delete
elm = jQuery('<span></span>').text(data.title);
[266] Fix | Delete
}
[267] Fix | Delete
if (data.banner) {
[268] Fix | Delete
elm = jQuery('<span></span>').append(jQuery('<img/>').attr(data.banner), elm);
[269] Fix | Delete
}
[270] Fix | Delete
}
[271] Fix | Delete
} else {
[272] Fix | Delete
elm = jQuery(e.data);
[273] Fix | Delete
elm.filter('a').each(function() {
[274] Fix | Delete
var tgt = jQuery(this);
[275] Fix | Delete
if (!tgt.attr('target')) {
[276] Fix | Delete
tgt.attr('target', '_blank');;
[277] Fix | Delete
}
[278] Fix | Delete
});
[279] Fix | Delete
}
[280] Fix | Delete
if (elm) {
[281] Fix | Delete
tabInteg.show();
[282] Fix | Delete
if (!ul.length) {
[283] Fix | Delete
ul = jQuery('<ul class="elfinder-help-integrations"></ul>').appendTo(integDIV);
[284] Fix | Delete
}
[285] Fix | Delete
if (data && data.cmd) {
[286] Fix | Delete
cmdCls = 'elfinder-help-integration-' + data.cmd;
[287] Fix | Delete
cmdUL = ul.find('ul.' + cmdCls);
[288] Fix | Delete
if (!cmdUL.length) {
[289] Fix | Delete
cmdUL = jQuery('<ul class="'+cmdCls+'"></ul>');
[290] Fix | Delete
ul.append(jQuery('<li></li>').append(jQuery('<span></span>').html(fm.i18n('cmd'+data.cmd))).append(cmdUL));
[291] Fix | Delete
}
[292] Fix | Delete
elm = cmdUL.append(jQuery('<li></li>').append(elm));
[293] Fix | Delete
} else {
[294] Fix | Delete
ul.append(jQuery('<li></li>').append(elm));
[295] Fix | Delete
}
[296] Fix | Delete
}
[297] Fix | Delete
}
[298] Fix | Delete
}).bind('themechange', function() {
[299] Fix | Delete
content.find('div.elfinder-help-term-theme').replaceWith(getTheme());
[300] Fix | Delete
});
[301] Fix | Delete
}
[302] Fix | Delete
[303] Fix | Delete
// debug
[304] Fix | Delete
if (useDebug) {
[305] Fix | Delete
tabDebug = content.find('.elfinder-help-tab-debug').hide();
[306] Fix | Delete
debugDIV = content.find('#'+fm.namespace+'-help-debug').children('div:first');
[307] Fix | Delete
debugUL = debugDIV.children('ul:first').on('click', function(e) {
[308] Fix | Delete
e.preventDefault();
[309] Fix | Delete
e.stopPropagation();
[310] Fix | Delete
});
[311] Fix | Delete
[312] Fix | Delete
self.debug = {};
[313] Fix | Delete
[314] Fix | Delete
fm.bind('backenddebug', function(e) {
[315] Fix | Delete
// CAUTION: DO NOT TOUCH `e.data`
[316] Fix | Delete
if (useDebug && e.data && e.data.debug) {
[317] Fix | Delete
self.debug = { options : e.data.options, debug : Object.assign({ cmd : fm.currentReqCmd }, e.data.debug) };
[318] Fix | Delete
if (self.dialog) {
[319] Fix | Delete
debugRender();
[320] Fix | Delete
}
[321] Fix | Delete
}
[322] Fix | Delete
});
[323] Fix | Delete
}
[324] Fix | Delete
[325] Fix | Delete
content.find('#'+fm.namespace+'-help-about').find('.apiver').text(fm.api);
[326] Fix | Delete
self.dialog = self.fmDialog(content, {
[327] Fix | Delete
title : self.title,
[328] Fix | Delete
width : 530,
[329] Fix | Delete
maxWidth: 'window',
[330] Fix | Delete
maxHeight: 'window',
[331] Fix | Delete
autoOpen : false,
[332] Fix | Delete
destroyOnClose : false,
[333] Fix | Delete
close : function() {
[334] Fix | Delete
if (useDebug) {
[335] Fix | Delete
tabDebug.hide();
[336] Fix | Delete
debugDIV.tabs('destroy');
[337] Fix | Delete
}
[338] Fix | Delete
opened = false;
[339] Fix | Delete
}
[340] Fix | Delete
})
[341] Fix | Delete
.on('click', function(e) {
[342] Fix | Delete
e.stopPropagation();
[343] Fix | Delete
})
[344] Fix | Delete
.css({
[345] Fix | Delete
overflow: 'hidden'
[346] Fix | Delete
});
[347] Fix | Delete
[348] Fix | Delete
tabBase = self.dialog.children('.ui-tabs');
[349] Fix | Delete
tabNav = tabBase.children('.ui-tabs-nav:first');
[350] Fix | Delete
tabs = tabBase.children('.ui-tabs-panel');
[351] Fix | Delete
delta = self.dialog.outerHeight(true) - self.dialog.height();
[352] Fix | Delete
self.dialog.closest('.ui-dialog').on('resize', function() {
[353] Fix | Delete
tabs.height(self.dialog.height() - delta - tabNav.outerHeight(true) - 20);
[354] Fix | Delete
});
[355] Fix | Delete
[356] Fix | Delete
if (helpSource) {
[357] Fix | Delete
self.dialog.one('initContents', function() {
[358] Fix | Delete
jQuery.ajax({
[359] Fix | Delete
url: self.options.helpSource? self.options.helpSource : helpSource.replace('%s', fm.lang),
[360] Fix | Delete
dataType: 'html'
[361] Fix | Delete
}).done(function(source) {
[362] Fix | Delete
jQuery('#'+fm.namespace+'-help-help').html(source);
[363] Fix | Delete
}).fail(function() {
[364] Fix | Delete
jQuery.ajax({
[365] Fix | Delete
url: helpSource.replace('%s', 'en'),
[366] Fix | Delete
dataType: 'html'
[367] Fix | Delete
}).done(function(source) {
[368] Fix | Delete
jQuery('#'+fm.namespace+'-help-help').html(source);
[369] Fix | Delete
});
[370] Fix | Delete
});
[371] Fix | Delete
});
[372] Fix | Delete
}
[373] Fix | Delete
[374] Fix | Delete
self.state = 0;
[375] Fix | Delete
[376] Fix | Delete
fm.trigger('helpBuilded', self.dialog);
[377] Fix | Delete
}).one('open', function() {
[378] Fix | Delete
var debug = false;
[379] Fix | Delete
fm.one('backenddebug', function() {
[380] Fix | Delete
debug =true;
[381] Fix | Delete
}).one('opendone', function() {
[382] Fix | Delete
requestAnimationFrame(function() {
[383] Fix | Delete
if (! debug && useDebug) {
[384] Fix | Delete
useDebug = false;
[385] Fix | Delete
tabDebug.hide();
[386] Fix | Delete
debugDIV.hide();
[387] Fix | Delete
debugUL.hide();
[388] Fix | Delete
}
[389] Fix | Delete
});
[390] Fix | Delete
});
[391] Fix | Delete
});
[392] Fix | Delete
[393] Fix | Delete
this.getstate = function() {
[394] Fix | Delete
return 0;
[395] Fix | Delete
};
[396] Fix | Delete
[397] Fix | Delete
this.exec = function(sel, opts) {
[398] Fix | Delete
var tab = opts? opts.tab : void(0),
[399] Fix | Delete
debugShow = function() {
[400] Fix | Delete
if (useDebug) {
[401] Fix | Delete
debugDIV.tabs();
[402] Fix | Delete
debugUL.find('a:first').trigger('click');
[403] Fix | Delete
tabDebug.show();
[404] Fix | Delete
opened = true;
[405] Fix | Delete
}
[406] Fix | Delete
};
[407] Fix | Delete
debugShow();
[408] Fix | Delete
this.dialog.trigger('initContents').elfinderdialog('open').find((tab? '.elfinder-help-tab-'+tab : '.ui-tabs-nav li') + ' a:first').trigger('click');
[409] Fix | Delete
return jQuery.Deferred().resolve();
[410] Fix | Delete
};
[411] Fix | Delete
[412] Fix | Delete
}).prototype = { forceLoad : true }; // this is required command
[413] Fix | Delete
[414] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function