fix node ci
This commit is contained in:
parent
2d7c86f323
commit
ea1041aa73
@ -132,13 +132,21 @@ function setMaxAmountRowers(name: string, rowers: number) {
|
|||||||
let shipmaster = <HTMLElement>document.querySelector('#shipmaster-newrowerjs');
|
let shipmaster = <HTMLElement>document.querySelector('#shipmaster-newrowerjs');
|
||||||
let steering_person = <HTMLElement>document.querySelector('#steering_person-newrowerjs');
|
let steering_person = <HTMLElement>document.querySelector('#steering_person-newrowerjs');
|
||||||
if (rowers == 1){
|
if (rowers == 1){
|
||||||
shipmaster.parentNode.classList.add('hidden');
|
if (shipmaster.parentNode) {
|
||||||
steering_person.parentNode.classList.add('hidden');
|
(<HTMLElement>shipmaster.parentNode).classList.add('hidden');
|
||||||
|
}
|
||||||
|
if (steering_person.parentNode){
|
||||||
|
(<HTMLElement>steering_person.parentNode).classList.add('hidden');
|
||||||
|
}
|
||||||
}else{
|
}else{
|
||||||
shipmaster.parentNode.classList.remove('hidden');
|
if (shipmaster.parentNode){
|
||||||
|
(<HTMLElement>shipmaster.parentNode).classList.remove('hidden');
|
||||||
|
}
|
||||||
shipmaster.setAttribute('required', 'required');
|
shipmaster.setAttribute('required', 'required');
|
||||||
|
|
||||||
steering_person.parentNode.classList.remove('hidden');
|
if (steering_person.parentNode){
|
||||||
|
(<HTMLElement>steering_person.parentNode).classList.remove('hidden');
|
||||||
|
}
|
||||||
steering_person.setAttribute('required', 'required');
|
steering_person.setAttribute('required', 'required');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user