This commit is contained in:
Kovid Goyal 2017-05-18 00:50:48 +05:30
parent ecb9266eca
commit cb576ef61a
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -137,6 +137,7 @@ class ModalContainer:
def create_simple_dialog_markup(title, msg, details, icon, prefix, parent):
details = details or ''
show_details = E.a(class_='dialog-simple-link', style='cursor:pointer; color: blue; padding-top:1em; display:inline-block; margin-left: auto', _('Show details'))
show_details.addEventListener('click', def():
show_details.style.display = 'none'
@ -174,7 +175,6 @@ def create_simple_dialog_markup(title, msg, details, icon, prefix, parent):
def create_simple_dialog(title, msg, details, icon, prefix):
details = details or ''
show_modal(create_simple_dialog_markup.bind(None, title, msg, details, icon, prefix))