mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 11:08:45 +02:00
N°3925 - Improve display of long external keys in autocomplete / dropdowns
- Show ellipsis if label is overflowing - Show tooltip on hover (useful for overflowing labels)
This commit is contained in:
@@ -145,7 +145,7 @@ function ExtKeyWidget(id, sTargetClass, sFilter, sTitle, bSelectMode, oWizHelper
|
||||
val = '<span class="ibo-input-select--autocomplete-item-image">'+item.initials+'</span>';
|
||||
}
|
||||
}
|
||||
val = val+'<span class="ibo-input-select--autocomplete-item-txt" >';
|
||||
val = val+'<span class="ibo-input-select--autocomplete-item-txt" title="'+item.label+'">';
|
||||
if (item.obsolescence_flag == 1) {
|
||||
val = val+'<span class="object-ref-icon text_decoration"><span class="fas fa-eye-slash object-obsolete fa-1x fa-fw"></span></span>'+item.label;
|
||||
} else {
|
||||
@@ -257,7 +257,7 @@ function ExtKeyWidget(id, sTargetClass, sFilter, sTitle, bSelectMode, oWizHelper
|
||||
val = '<span class="ibo-input-select--autocomplete-item-image");">'+item.initials+'</span>';
|
||||
}
|
||||
}
|
||||
val = val+'<div class="ibo-input-select--autocomplete-item-txt">';
|
||||
val = val+'<div class="ibo-input-select--autocomplete-item-txt" title="'+item.label+'">';
|
||||
if (item.obsolescence_flag == '1') {
|
||||
val = val+' <span class="object-ref-icon text_decoration"><span class="fas fa-eye-slash object-obsolete fa-1x fa-fw"></span></span>';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user