]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
docs: remove duplicate code for indeterminate (#30471)
authorXhmikosR <xhmikosr@gmail.com>
Sat, 28 Mar 2020 09:41:03 +0000 (11:41 +0200)
committerGitHub <noreply@github.com>
Sat, 28 Mar 2020 09:41:03 +0000 (11:41 +0200)
site/assets/js/application.js
site/content/docs/4.3/forms/checks.md

index d5a68c7e123673e93411f3154e369cf37e062865..c825d737378ebbd87ccd23d520f6c917c0ba4cde 100644 (file)
     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'))
index 6b90fb9bf309e7cb5e35dad8eb288b098deb2a97..e189d1bb9b38e3f752a70ee17b5bc3a68ab7e507 100644 (file)
@@ -35,7 +35,7 @@ Our checks use custom Bootstrap icons to indicate checked or indeterminate state
 
 Checkboxes can utilize the `:indeterminate` pseudo class when manually set via JavaScript (there is no available HTML attribute for specifying it).
 
-{{< example >}}
+{{< example class="bd-example-indeterminate">}}
 <div class="form-check">
   <input class="form-check-input" type="checkbox" value="" id="flexCheckIndeterminate">
   <label class="form-check-label" for="flexCheckIndeterminate">