mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 02:58:43 +02:00
N°4336 - Improve tooltip pertinence, by hiding useless entries
This commit is contained in:
@@ -88,6 +88,11 @@ class PopoverMenuItemFactory
|
||||
'tooltip' => isset($aActionData['tooltip']) ? $aActionData['tooltip'] : '',
|
||||
];
|
||||
|
||||
// Avoid meaningless tooltips which are identical to the label
|
||||
if ($aRefactoredItem['tooltip'] == $aRefactoredItem['label']) {
|
||||
$aRefactoredItem['tooltip'] = '';
|
||||
}
|
||||
|
||||
if (!empty($aRefactoredItem['on_click'])) {
|
||||
// JS
|
||||
$oPopoverMenuItem = PopoverMenuItemFactory::MakeFromApplicationPopupMenuItem(
|
||||
|
||||
Reference in New Issue
Block a user