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

@@ -29,7 +29,6 @@ class Entry(Data):
grammar = entry_xml.querySelector("head grammar category")
comment = entry_xml.querySelector("head comment")
self.status = status.textContent if status else ""
self.headword = headword.textContent if headword else ""
self.headword_type = headword.getAttribute("type") if headword else None
@@ -97,7 +96,6 @@ class Entry(Data):
if len(self.homonymy) == 0:
view_buttons.append(buttons[4])
else:
console.log(self.homonymy)
view_table.append((buttons[4], ", ".join(h.value for h in self.homonymy)))
if len(self.related_entries) == 0: