From 8a1ccddfd4f5d2a3f1661569f987f0e910510dd2 Mon Sep 17 00:00:00 2001 From: Qiming Teng Date: Sat, 18 Jul 2020 21:08:19 +0800 Subject: [PATCH] Remove customization of 'anchors' The AnchorsJS module has been killed recently in #22311 prematurely. Now we don't have a global variable 'anchors' to customize. This PR removes the related code in script.js in hope everything else is still working correctly. --- static/js/script.js | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/static/js/script.js b/static/js/script.js index 2e477e9a55..f1d33c2caf 100644 --- a/static/js/script.js +++ b/static/js/script.js @@ -1,11 +1,3 @@ -function addAnchorTags() { - anchors.options = { - visible: 'touch' - } - - anchors.add('#docsContent h2, #docsContent h3, #docsContent h4, #docsContent h5, #docsContent h6'); -} - //modal close button (function(){ //π.modalCloseButton = function(closingFunction){ @@ -517,9 +509,6 @@ var pushmenu = (function(){ })(); $(function() { - addAnchorTags(); - - // If vendor strip doesn't exist add className if ( !$('#vendorStrip').length > 0 ) { $('.header-hero').addClass('bot-bar');