1
0
mirror of https://github.com/billz/raspap-webgui.git synced 2025-07-08 20:07:40 +02:00

Update w/ disableValidation() to support logout btn

This commit is contained in:
billz 2025-03-22 03:12:46 -07:00
parent 05e20e3bab
commit 51a0ce220c

View File

@ -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');