Added kontrastivno special tag

This commit is contained in:
2020-03-19 21:02:53 +01:00
parent 00b10796e9
commit 350f9e58ab
2 changed files with 25 additions and 3 deletions

View File

@@ -16,6 +16,9 @@ def label_list_getter():
lvalue = row.querySelector(".label-value")
lother = row.querySelector(".label-value-other")
if lother is None:
continue
value = lother.value
if not value:
value = lvalue.options[lvalue.selectedIndex].text
@@ -24,5 +27,9 @@ def label_list_getter():
continue
result.append((ltype.textContent, value))
kontrastivno = document.getElementById("kontrastivno-input").checked;
if kontrastivno:
result.append(("relation", "kontrastivno"))
return result