Remove duplicate tooltip instantiation
This commit is contained in:
parent
4e404b3b40
commit
909f1c933f
2 changed files with 1 additions and 5 deletions
3
app/assets/javascripts/commons/bootstrap.js
vendored
3
app/assets/javascripts/commons/bootstrap.js
vendored
|
@ -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();
|
||||
|
|
|
@ -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';
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue