diff --git a/app/js/custom.js b/app/js/custom.js index 7d9e92e9..7b036913 100644 --- a/app/js/custom.js +++ b/app/js/custom.js @@ -1019,6 +1019,14 @@ document.addEventListener("DOMContentLoaded", function () { } }); +function disableValidation(form) { + form.removeAttribute("novalidate"); + form.classList.remove("needs-validation"); + form.querySelectorAll("[required]").forEach(function (field) { + field.removeAttribute("required"); + }); +} + $(document).ready(function() { const $htmlElement = $('html'); const $modeswitch = $('#night-mode');