Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
e4dc6b84
Commit
e4dc6b84
authored
5 years ago
by
XhmikosR
Browse files
Options
Download
Email Patches
Plain Diff
Move inline JS to application.js.
parent
9be99c9b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
site/content/docs/4.3/forms/checks.md
+0
-7
site/content/docs/4.3/forms/checks.md
site/static/docs/4.3/assets/js/src/application.js
+10
-0
site/static/docs/4.3/assets/js/src/application.js
with
10 additions
and
7 deletions
+10
-7
site/content/docs/4.3/forms/checks.md
+
0
-
7
View file @
e4dc6b84
...
...
@@ -14,13 +14,6 @@ Structurally, our `<input>`s and `<label>`s are sibling elements as opposed to a
Our checks use custom Bootstrap icons to indicate checked or indeterminate states.
<script>
document.addEventListener("DOMContentLoaded", function() {
var checkbox = document.getElementById("flexCheckIndeterminate");
checkbox.indeterminate = true;
});
</script>
## Checks
{{
<
example
>
}}
...
...
This diff is collapsed.
Click to expand it.
site/static/docs/4.3/assets/js/src/application.js
+
10
-
0
View file @
e4dc6b84
...
...
@@ -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
'
))
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment