Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@gmail.com>2020-05-02 18:49:12 +0300
committerXhmikosR <xhmikosr@gmail.com>2020-06-03 15:57:20 +0300
commit358d637d1c664950fea501f928cc9f0247f2b8f0 (patch)
tree99884746b315999b97f11122cacccdc2f419b69f /site/assets
parent6824d67beb423d51d27b9f297f97c75f6298c183 (diff)
Read validate-forms.js from assets.
Diffstat (limited to 'site/assets')
-rw-r--r--site/assets/js/validate-forms.js24
1 files changed, 0 insertions, 24 deletions
diff --git a/site/assets/js/validate-forms.js b/site/assets/js/validate-forms.js
deleted file mode 100644
index b79f63f2dc..0000000000
--- a/site/assets/js/validate-forms.js
+++ /dev/null
@@ -1,24 +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')
-
- if (!forms) {
- return
- }
-
- // 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)
- })
-})()