support homonymy inside modal

This commit is contained in:
matic_t
2020-07-16 03:22:54 -07:00
parent fb9a809c02
commit b010414bfe
7 changed files with 36 additions and 31 deletions

View File

@@ -33,13 +33,11 @@ def export_entry(entry):
headword.appendChild(homonymy)
for h in entry.homonymy:
console.log(h)
feature = doc.createElement("homonymyFeature")
feature.textContent = h.value
feature.setAttribute("name", h["name"])
homonymy.appendChild(feature)
console.log(homonymy)
# if({}) works uncorrectly in transcrypt
if len(entry.lexical_unit) > 0: