You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
898 B
35 lines
898 B
from browser import document
|
|
from message.message import Message
|
|
from message.simple_messages import NoReset
|
|
|
|
|
|
class DeleteComment(NoReset):
|
|
def update_model(self, model):
|
|
document.getElementById("modal-question").value = ""
|
|
|
|
|
|
class DeleteVariants(NoReset):
|
|
def update_model(self, model):
|
|
for el in document.getElementsByClassName("list-adder-input"):
|
|
el.value = ""
|
|
|
|
|
|
class DeleteRelatedEntries(DeleteVariants):
|
|
pass
|
|
|
|
|
|
|
|
class DeleteHomonymy(NoReset):
|
|
def update_model(self, model):
|
|
for el in document.getElementsByClassName("list-adder-input"):
|
|
el.value = ""
|
|
|
|
|
|
|
|
class DeleteEntryLabels(NoReset):
|
|
def update_model(self, model):
|
|
for sel in document.getElementsByClassName("label-value"):
|
|
sel.selectedIndex = 0
|
|
for inpt in document.getElementsByClassName("label-value-other"):
|
|
inpt.value = ""
|