changing the befaviour of examples_shown button
This commit is contained in:
parent
f609177d33
commit
62a1fd5cf1
|
@ -16,7 +16,6 @@ class Example(Data):
|
|||
self.inner = None
|
||||
self.components = []
|
||||
|
||||
|
||||
def import_xml(self, example_xml):
|
||||
self.translations = from_container_list(example_xml.querySelectorAll("translationContainer"))
|
||||
|
||||
|
@ -67,9 +66,9 @@ class Example(Data):
|
|||
if "logDice" in other_attributes:
|
||||
example_content.append(h("span.example-logdice", {}, other_attributes["logDice"]))
|
||||
|
||||
parent_display = "inherit"
|
||||
if not model.examples_shown and not self.is_multiword():
|
||||
parent_display = "none"
|
||||
if model.examples_shown or self.is_multiword() or len(self.translations) > 0:
|
||||
parent_display = "inherit"
|
||||
|
||||
clusters_display = "inherit"
|
||||
if not model.clusters_shown:
|
||||
|
|
Loading…
Reference in New Issue
Block a user