1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-29 16:19:53 +02:00

Move inline JS to application.js.

This commit is contained in:
XhmikosR
2019-07-17 11:29:30 +03:00
parent 9be99c9b34
commit e4dc6b84b1
2 changed files with 10 additions and 7 deletions

View File

@@ -19,6 +19,16 @@
return [].slice.call(list)
}
(function () {
var checkbox = document.getElementById('flexCheckIndeterminate')
if (!checkbox) {
return
}
checkbox.indeterminate = true
})()
makeArray(document.querySelectorAll('.js-sidenav-group'))
.forEach(function (sidenavGroup) {
var groupHasLinks = Boolean(sidenavGroup.querySelector('li'))