Commit 65535829 authored by Clement Ho's avatar Clement Ho

Fix resolve discussion tooltip

parent 766b0e7d
...@@ -136,7 +136,8 @@ document.addEventListener('DOMContentLoaded', () => { ...@@ -136,7 +136,8 @@ document.addEventListener('DOMContentLoaded', () => {
}); });
// Initialize tooltips // Initialize tooltips
$('.has-tooltip, [data-toggle="tooltip"]').tooltip({ $body.tooltip({
selector: '.has-tooltip, [data-toggle="tooltip"]',
placement(tip, el) { placement(tip, el) {
return $(el).data('placement') || 'bottom'; return $(el).data('placement') || 'bottom';
}, },
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
- if discussion.potentially_resolvable? - if discussion.potentially_resolvable?
- line_type = local_assigns.fetch(:line_type, nil) - line_type = local_assigns.fetch(:line_type, nil)
.btn-group.d-flex.discussion-with-resolve-btn{ role: "group" } .btn-group.discussion-with-resolve-btn{ role: "group" }
.btn-group{ role: "group" } .btn-group{ role: "group" }
= link_to_reply_discussion(discussion, line_type) = link_to_reply_discussion(discussion, line_type)
......
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