diff --git a/assets/js/app.js b/assets/js/app.js
index 51d31580e26..7dffc3d485e 100644
--- a/assets/js/app.js
+++ b/assets/js/app.js
@@ -106,14 +106,15 @@ const bootstrapDocsSearch = function() {
}
const bootstrapIdLinks = function() {
- const container = '.wrapper ARTICLE';
+ const $container = $('.main-content')
const selector = 'h2[id], h3[id], h4[id], h5[id], h6[id]';
- $(container).on('mouseenter', selector, function(e) {
- $(e.target).append($('').addClass('header-anchor').attr('href', '#' + e.target.id).html('link'));
+
+ $container.on('mouseenter', selector, function(e) {
+ $(e.target).append($('').addClass('header-anchor').attr('href', '#' + e.target.id).html('link'));
});
- $(container).on('mouseleave', selector, function(e) {
- $(e.target).parent().find('.header-anchor').remove();
+ $container.on('mouseleave', selector, function(e) {
+ $container.find('.header-anchor').remove();
});
}