master_template/public/assets/js/pages/form-validation.init.js

1 line
323 B
JavaScript
Raw Normal View History

2024-06-10 12:21:58 +00:00
!function(){"use strict";window.addEventListener("load",function(){var t=document.getElementsByClassName("needs-validation");t&&Array.prototype.filter.call(t,function(e){e.addEventListener("submit",function(t){!1===e.checkValidity()&&(t.preventDefault(),t.stopPropagation()),e.classList.add("was-validated")},!1)})},!1)}();