mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-30 22:52:24 +01:00
Fix anchors wrapper.
This commit is contained in:
parent
388d16360a
commit
e04a5139ab
@ -150,10 +150,7 @@
|
|||||||
// Wrap inner
|
// Wrap inner
|
||||||
bootstrap.Util.makeArray(document.querySelectorAll('.bd-content > h2, .bd-content > h3, .bd-content > h4, .bd-content > h5'))
|
bootstrap.Util.makeArray(document.querySelectorAll('.bd-content > h2, .bd-content > h3, .bd-content > h4, .bd-content > h5'))
|
||||||
.forEach(function (hEl) {
|
.forEach(function (hEl) {
|
||||||
var span = document.createElement('span')
|
hEl.innerHTML = '<span class="bd-content-title">' + hEl.innerHTML + '</span>'
|
||||||
span.classList.add('bd-content-title')
|
|
||||||
hEl.parentElement.insertBefore(span, hEl)
|
|
||||||
span.appendChild(hEl)
|
|
||||||
})
|
})
|
||||||
|
|
||||||
bsCustomFileInput.init()
|
bsCustomFileInput.init()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user