Code cleanup, update Endpoint default value

This commit is contained in:
billz
2021-03-07 19:06:53 +00:00
parent 7c1ef85bb8
commit 1e7438da23
6 changed files with 18 additions and 12 deletions

View File

@@ -368,6 +368,7 @@ window.addEventListener('load', function() {
// Loop over them and prevent submission
var validation = Array.prototype.filter.call(forms, function(form) {
form.addEventListener('submit', function(event) {
//console.log(event.submitter);
if (form.checkValidity() === false) {
event.preventDefault();
event.stopPropagation();