Commit 909f1c93 authored by Clement Ho's avatar Clement Ho

Remove duplicate tooltip instantiation

parent 4e404b3b
...@@ -10,6 +10,3 @@ $.fn.extend({ ...@@ -10,6 +10,3 @@ $.fn.extend({
disable() { return $(this).prop('disabled', true).addClass('disabled'); }, disable() { return $(this).prop('disabled', true).addClass('disabled'); },
enable() { return $(this).prop('disabled', false).removeClass('disabled'); }, enable() { return $(this).prop('disabled', false).removeClass('disabled'); },
}); });
// Enable Bootstrap tooltips
$('[data-toggle="tooltip"]').tooltip();
...@@ -136,8 +136,7 @@ document.addEventListener('DOMContentLoaded', () => { ...@@ -136,8 +136,7 @@ document.addEventListener('DOMContentLoaded', () => {
}); });
// Initialize tooltips // Initialize tooltips
$body.tooltip({ $('.has-tooltip, [data-toggle="tooltip"]').tooltip({
selector: '.has-tooltip, [data-toggle="tooltip"]',
placement(tip, el) { placement(tip, el) {
return $(el).data('placement') || 'bottom'; return $(el).data('placement') || 'bottom';
}, },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment