0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-01-28 20:52:21 +01:00

Fix anchors wrapper.

This commit is contained in:
XhmikosR 2018-11-20 23:41:54 +02:00
parent 388d16360a
commit e04a5139ab

View File

@ -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()