diff options
| author | XhmikosR <[email protected]> | 2018-11-20 23:41:54 +0200 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2019-02-20 22:05:45 +0200 |
| commit | e04a5139ab09f42478161ba50d17540824117d46 (patch) | |
| tree | a0f69a1da4047e70df0c66df61eed0415dc4b587 | |
| parent | 388d16360a00fadabe5939743ae588e7fb989121 (diff) | |
| download | bootstrap-e04a5139ab09f42478161ba50d17540824117d46.tar.xz bootstrap-e04a5139ab09f42478161ba50d17540824117d46.zip | |
Fix anchors wrapper.
| -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 a7f92e456..137297173 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() |
