mirror of
https://github.com/billz/raspap-webgui.git
synced 2025-07-09 01:17:40 +02:00
Update w/ disableValidation() to support logout btn
This commit is contained in:
parent
05e20e3bab
commit
51a0ce220c
@ -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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user