Project

General

Profile

« Previous | Next » 

Revision a18cc1f1

Added by Tomer Brisker over 7 years ago

Fixes #17501 - Display tooltips on dashboard widgets (#4067)

View differences:

webpack/assets/javascripts/foreman_tools.js
$(this).parents('.dropdown').find('.btn').html($(this).text() + ' <span class="caret"></span>');
});
}
export function activateTooltips(el = $('body')) {
el.find('[rel="twipsy"]').tooltip({ container: 'body' });
el.find('.ellipsis').tooltip({ container: 'body', title: () => {
return (this.scrollWidth > this.clientWidth ?
this.textContent : null);
}
});
el.find('*[title]').not('*[rel]').tooltip({ container: 'body' });
}

Also available in: Unified diff