show hide stuff in bird edit
This commit is contained in:
parent
01efde870e
commit
fdacc9adf9
1 changed files with 2 additions and 1 deletions
|
@ -1,10 +1,11 @@
|
|||
|
||||
function showBirdEditFields() {
|
||||
let statusField = document.getElementById("id_status");
|
||||
let statusText = statusField.options[statusField.selectedIndex].text;
|
||||
let aviaryField = document.getElementById("div_id_aviary");
|
||||
let sentToField = document.getElementById("div_id_sent_to");
|
||||
|
||||
aviaryField.hidden = true
|
||||
sentToField.hidden = true
|
||||
|
||||
if (statusText == 'In Auswilderung') {
|
||||
aviaryField.hidden = false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue