From cf3bfa04ef616358c9ee04dc228b2390d60e1220 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Tue, 8 Aug 2017 21:45:33 -0700 Subject: replacement fix for #23257 without old history --- assets/js/src/application.js | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'assets/js/src/application.js') diff --git a/assets/js/src/application.js b/assets/js/src/application.js index e1b9721a0..ea7d812b0 100644 --- a/assets/js/src/application.js +++ b/assets/js/src/application.js @@ -96,15 +96,10 @@ .tooltip('_fixTitle') }) + anchors.options = { + icon: '#' + } + anchors.add('.bd-content > h2, .bd-content > h3, .bd-content > h4, .bd-content > h5') + $('.bd-content > h2, .bd-content > h3, .bd-content > h4, .bd-content > h5').wrapInner('') }) - }(jQuery)) - -;(function () { - 'use strict' - - anchors.options = { - icon: '#' - } - anchors.add('.bd-content > h2, .bd-content > h3, .bd-content > h4, .bd-content > h5') -}()) -- cgit v1.2.3 From 72ddc091dd6c0c2a8bbc948b277c8a0ac33ff89f Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Wed, 9 Aug 2017 08:24:34 -0700 Subject: move to div for block level --- assets/js/src/application.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'assets/js/src/application.js') diff --git a/assets/js/src/application.js b/assets/js/src/application.js index ea7d812b0..9c236b7c4 100644 --- a/assets/js/src/application.js +++ b/assets/js/src/application.js @@ -100,6 +100,6 @@ icon: '#' } anchors.add('.bd-content > h2, .bd-content > h3, .bd-content > h4, .bd-content > h5') - $('.bd-content > h2, .bd-content > h3, .bd-content > h4, .bd-content > h5').wrapInner('') + $('.bd-content > h2, .bd-content > h3, .bd-content > h4, .bd-content > h5').wrapInner('
') }) }(jQuery)) -- cgit v1.2.3