jazzmin as a more beauty admin panel

This commit is contained in:
gw3000 2023-07-11 18:04:19 +02:00
parent 8ea5c87c9c
commit aca1c3c3fa
117 changed files with 4 additions and 0 deletions

View file

@ -1,21 +0,0 @@
function showHideAviary() {
let statusField = document.getElementById("id_status");
let aviaryField = document.getElementById("div_id_aviary");
let statusText = statusField.options[statusField.selectedIndex].text;
if (statusText == 'In Auswilderung') {
aviaryField.hidden = false
} else {
aviaryField.hidden = true
}
}
// Load function on windows load.
(showHideAviary)();
// Load function on change.
document.getElementById("id_status").addEventListener("change", (event) => {
showHideAviary()
});