aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/twbs/bootstrap/site/content/docs/5.1/examples/checkout/form-validation.js
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-08-19 13:15:48 +0000
committerMario <mario@mariovavti.com>2022-08-19 13:15:48 +0000
commit185ddf1eaf82e08586be6c7689507ee924d9dd47 (patch)
tree218ff6da6fb1511a1b2823729607c7c4b13e30e9 /vendor/twbs/bootstrap/site/content/docs/5.1/examples/checkout/form-validation.js
parent7dee47183d05b6e1f7d5c5588e2df9993fb294dd (diff)
downloadvolse-hubzilla-185ddf1eaf82e08586be6c7689507ee924d9dd47.tar.gz
volse-hubzilla-185ddf1eaf82e08586be6c7689507ee924d9dd47.tar.bz2
volse-hubzilla-185ddf1eaf82e08586be6c7689507ee924d9dd47.zip
update to bootstrap 5.2 and fixes
Diffstat (limited to 'vendor/twbs/bootstrap/site/content/docs/5.1/examples/checkout/form-validation.js')
-rw-r--r--vendor/twbs/bootstrap/site/content/docs/5.1/examples/checkout/form-validation.js20
1 files changed, 0 insertions, 20 deletions
diff --git a/vendor/twbs/bootstrap/site/content/docs/5.1/examples/checkout/form-validation.js b/vendor/twbs/bootstrap/site/content/docs/5.1/examples/checkout/form-validation.js
deleted file mode 100644
index f8fd583de..000000000
--- a/vendor/twbs/bootstrap/site/content/docs/5.1/examples/checkout/form-validation.js
+++ /dev/null
@@ -1,20 +0,0 @@
-// Example starter JavaScript for disabling form submissions if there are invalid fields
-(function () {
- 'use strict'
-
- // Fetch all the forms we want to apply custom Bootstrap validation styles to
- var forms = document.querySelectorAll('.needs-validation')
-
- // Loop over them and prevent submission
- Array.prototype.slice.call(forms)
- .forEach(function (form) {
- form.addEventListener('submit', function (event) {
- if (!form.checkValidity()) {
- event.preventDefault()
- event.stopPropagation()
- }
-
- form.classList.add('was-validated')
- }, false)
- })
-})()