Rewrite code to es5 (hint manager)
This commit is contained in:
parent
c7b877ae9a
commit
fb61d764e7
|
@ -431,11 +431,11 @@ Common.UI.HintManager = new(function() {
|
||||||
_resetToDefault();
|
_resetToDefault();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!curr.attr('content-target') || (curr.attr('content-target') && !$(`#${curr.attr('content-target')}`).is(':visible'))) { // need to open panel
|
if (!curr.attr('content-target') || (curr.attr('content-target') && !$('#' + curr.attr('content-target')).is(':visible'))) { // need to open panel
|
||||||
if (!($('#file-menu-panel').is(':visible') && (curr.parent().prop('id') === 'fm-btn-info' && $('#panel-info').is(':visible') ||
|
if (!($('#file-menu-panel').is(':visible') && (curr.parent().prop('id') === 'fm-btn-info' && $('#panel-info').is(':visible') ||
|
||||||
curr.parent().prop('id') === 'fm-btn-settings' && $('#panel-settings').is(':visible')))) {
|
curr.parent().prop('id') === 'fm-btn-settings' && $('#panel-settings').is(':visible')))) {
|
||||||
if (curr.attr('for')) { // to trigger event in checkbox
|
if (curr.attr('for')) { // to trigger event in checkbox
|
||||||
$(`#${curr.attr('for')}`).trigger(jQuery.Event('click', {which: 1}));
|
$('#' + curr.attr('for')).trigger(jQuery.Event('click', {which: 1}));
|
||||||
} else {
|
} else {
|
||||||
curr.trigger(jQuery.Event('click', {which: 1}));
|
curr.trigger(jQuery.Event('click', {which: 1}));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue