diff options
author | XhmikosR <xhmikosr@gmail.com> | 2018-11-21 00:41:54 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2019-02-20 23:05:45 +0300 |
commit | e04a5139ab09f42478161ba50d17540824117d46 (patch) | |
tree | a0f69a1da4047e70df0c66df61eed0415dc4b587 /site/docs/4.3 | |
parent | 388d16360a00fadabe5939743ae588e7fb989121 (diff) |
Fix anchors wrapper.
Diffstat (limited to 'site/docs/4.3')
-rw-r--r-- | site/docs/4.3/assets/js/src/application.js | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/site/docs/4.3/assets/js/src/application.js b/site/docs/4.3/assets/js/src/application.js index a7f92e4563..1372971732 100644 --- a/site/docs/4.3/assets/js/src/application.js +++ b/site/docs/4.3/assets/js/src/application.js @@ -150,10 +150,7 @@ // Wrap inner bootstrap.Util.makeArray(document.querySelectorAll('.bd-content > h2, .bd-content > h3, .bd-content > h4, .bd-content > h5')) .forEach(function (hEl) { - var span = document.createElement('span') - span.classList.add('bd-content-title') - hEl.parentElement.insertBefore(span, hEl) - span.appendChild(hEl) + hEl.innerHTML = '<span class="bd-content-title">' + hEl.innerHTML + '</span>' }) bsCustomFileInput.init() |