Revision d3ddfac0
Added by Tomer Brisker about 3 years ago
webpack/assets/javascripts/foreman_tools.js | ||
---|---|---|
el.tooltip({
|
||
selector: '[rel="twipsy"],*[title]:not(*[rel],.fa,.pficon)',
|
||
container: 'body',
|
||
trigger: 'hover',
|
||
});
|
||
// Ellipsis have to be initialized for each element for title() to work
|
||
el.find('.ellipsis').tooltip({
|
Also available in: Unified diff
Fixes #32153 - Hide tooltip on multiselect all buttons
The tooltips remain shown on click because the elemnt they are attached
to is a `a` tag, which remains in focus until the user clicks elsewhere
so there is no `focusout` event fired.
For the deselect all button, the click handler calls
`multiSelect('refresh')` which in turn removes the multiselect element
(with the tooltip event handlers) from the DOM1, leaving the tooltip
always displayed.
Since we only use tooltips for hover help, the `focus` trigger has been
removed. Popovers should be used when showing information that is
displayed on focus (i.e. when clicking on an element).
[1] https://github.com/lou/multi-select/blob/0.9.12/js/jquery.multi-select.js#L335