From cb576ef61aee8b7fc901e48aa0139f9fc0667870 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 18 May 2017 00:50:48 +0530 Subject: [PATCH] ... --- src/pyj/modals.pyj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pyj/modals.pyj b/src/pyj/modals.pyj index 56d3947082..2c9d14d455 100644 --- a/src/pyj/modals.pyj +++ b/src/pyj/modals.pyj @@ -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))