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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user