refactoring view, now combining modals and view into one module.

Also common modal components can now be nicely separated and reused
This commit is contained in:
2019-11-16 14:41:29 +01:00
parent 5301b2a5fa
commit d8291a15cf
7 changed files with 37 additions and 30 deletions

View File

@@ -51,7 +51,7 @@ class EditExampleTranslation(Message):
def update_model(self, model):
self.example.translations = []
for input_el in document.getElementsByClassName("example-translation-edit-input"):
for input_el in document.getElementsByClassName("list-adder-input"):
new_example_translation = input_el.value
if new_example_translation != "":
self.example.translations.append(new_example_translation)