forked from Ruderverein-Donau-Linz/rowt
use proper names for new form fields
This commit is contained in:
@ -198,7 +198,7 @@ function initNewChoice(select: HTMLInputElement) {
|
||||
const name = event.detail.label;
|
||||
|
||||
if (event.detail.customProperties.is_cox) {
|
||||
const coxSelect = <HTMLSelectElement>document.querySelector('#cox');
|
||||
const coxSelect = <HTMLSelectElement>document.querySelector('#shipmaster');
|
||||
if (coxSelect){
|
||||
coxSelect.add(new Option(name, user_id));
|
||||
}
|
||||
@ -215,7 +215,7 @@ function initNewChoice(select: HTMLInputElement) {
|
||||
|
||||
const user_id = event.detail.value;
|
||||
|
||||
const coxSelect = <HTMLSelectElement>document.querySelector('#cox');
|
||||
const coxSelect = <HTMLSelectElement>document.querySelector('#shipmaster');
|
||||
if (coxSelect) {
|
||||
for (var i=0; i<coxSelect.length; i++) {
|
||||
if (coxSelect.options[i].value == user_id)
|
||||
|
Reference in New Issue
Block a user