summaryrefslogtreecommitdiffstats
path: root/site/static/docs/5.2/assets/js
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-06-24 12:44:36 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-06-24 12:44:36 +0000
commitc1d5a801b4bc66e3866f815be00e11d1b20d3539 (patch)
tree394cfedf644640ac80b78aaddaff93ceb8eefa5e /site/static/docs/5.2/assets/js
parentAdding upstream version 5.2.3+dfsg. (diff)
downloadbootstrap-html-upstream/5.3.0+dfsg.tar.xz
bootstrap-html-upstream/5.3.0+dfsg.zip
Adding upstream version 5.3.0+dfsg.upstream/5.3.0+dfsg
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'site/static/docs/5.2/assets/js')
-rw-r--r--site/static/docs/5.2/assets/js/validate-forms.js19
1 files changed, 0 insertions, 19 deletions
diff --git a/site/static/docs/5.2/assets/js/validate-forms.js b/site/static/docs/5.2/assets/js/validate-forms.js
deleted file mode 100644
index 30ea0aa..0000000
--- a/site/static/docs/5.2/assets/js/validate-forms.js
+++ /dev/null
@@ -1,19 +0,0 @@
-// Example starter JavaScript for disabling form submissions if there are invalid fields
-(() => {
- 'use strict'
-
- // Fetch all the forms we want to apply custom Bootstrap validation styles to
- const forms = document.querySelectorAll('.needs-validation')
-
- // Loop over them and prevent submission
- Array.from(forms).forEach(form => {
- form.addEventListener('submit', event => {
- if (!form.checkValidity()) {
- event.preventDefault()
- event.stopPropagation()
- }
-
- form.classList.add('was-validated')
- }, false)
- })
-})()