began new circumstances in JS
This commit is contained in:
parent
a24c8c8c9e
commit
48b0a6ba07
1 changed files with 17 additions and 0 deletions
17
static/js/find_circumstances.js
Normal file
17
static/js/find_circumstances.js
Normal file
|
@ -0,0 +1,17 @@
|
|||
function showHideFindCircumstancesNew() {
|
||||
let circField = document.getElementById("id_find_circumstances");
|
||||
let circFieldNew = document.getElementById("id_find_circumstances_new");
|
||||
let circText = circField.options[circField.selectedIndex].text;
|
||||
|
||||
if (circText == 'Neu') {
|
||||
circFieldNew.type = "show"
|
||||
} else {
|
||||
circFieldNew.type = "hidden"
|
||||
}
|
||||
}
|
||||
|
||||
(showHideFindCircumstancesNew)();
|
||||
|
||||
document.getElementById("id_find_circumstances").addEventListener("change", (event) => {
|
||||
showHideFindCircumstancesNew()
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue