[DE] fix bug 59315

This commit is contained in:
Maxim Kadushkin 2022-10-10 00:32:24 +03:00
parent f0402ac0a2
commit 1035069d92
2 changed files with 2 additions and 2 deletions

View file

@ -293,7 +293,7 @@ define([
}
})).show();
break;
case 'help':
case 'external-help':
close_menu = !!isopts;
break;
default: close_menu = false;

View file

@ -68,7 +68,7 @@ define([
var panel = this.panels[item.options.action];
if (item.options.action === 'help') {
if ( panel.usedHelpCenter === true && navigator.onLine ) {
this.fireEvent('item:click', [this, item.options.action, true]);
this.fireEvent('item:click', [this, 'external-help', true]);
window.open(panel.urlHelpCenter, '_blank');
return;
}