Remove duplicate tooltip instantiation

This commit is contained in:
Clement Ho 2018-04-17 11:34:00 -05:00
parent 4e404b3b40
commit 909f1c933f
2 changed files with 1 additions and 5 deletions

View file

@ -10,6 +10,3 @@ $.fn.extend({
disable() { return $(this).prop('disabled', true).addClass('disabled'); },
enable() { return $(this).prop('disabled', false).removeClass('disabled'); },
});
// Enable Bootstrap tooltips
$('[data-toggle="tooltip"]').tooltip();

View file

@ -136,8 +136,7 @@ document.addEventListener('DOMContentLoaded', () => {
});
// Initialize tooltips
$body.tooltip({
selector: '.has-tooltip, [data-toggle="tooltip"]',
$('.has-tooltip, [data-toggle="tooltip"]').tooltip({
placement(tip, el) {
return $(el).data('placement') || 'bottom';
},