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 steering_person = <HTMLElement>document.querySelector('#steering_person-newrowerjs');
|
||||
if (rowers == 1){
|
||||
shipmaster.parentNode.classList.add('hidden');
|
||||
steering_person.parentNode.classList.add('hidden');
|
||||
if (shipmaster.parentNode) {
|
||||
(<HTMLElement>shipmaster.parentNode).classList.add('hidden');
|
||||
}
|
||||
if (steering_person.parentNode){
|
||||
(<HTMLElement>steering_person.parentNode).classList.add('hidden');
|
||||
}
|
||||
}else{
|
||||
shipmaster.parentNode.classList.remove('hidden');
|
||||
if (shipmaster.parentNode){
|
||||
(<HTMLElement>shipmaster.parentNode).classList.remove('hidden');
|
||||
}
|
||||
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');
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user