From 7022121c4331e94449f1de5e2581732fa9b3142a Mon Sep 17 00:00:00 2001 From: Max Pozdeev Date: Mon, 14 Sep 2020 23:25:22 +0300 Subject: [PATCH] fix js for IE11 compatibility --- src/includes/mytinytodo.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/includes/mytinytodo.js b/src/includes/mytinytodo.js index 0a26f7e..96013b3 100644 --- a/src/includes/mytinytodo.js +++ b/src/includes/mytinytodo.js @@ -2122,16 +2122,18 @@ function hideTab(listId) Errors and Info messages */ -function flashError(str, details = '') +function flashError(str, details) { + if (details === undefined) details = ''; $("#msg>.msg-text").text(str) $("#msg>.msg-details").text(details); $("#loading").hide(); $("#msg").addClass('mtt-error').effect("highlight", {color:_mtt.theme.msgFlashColor}, 700); } -function flashInfo(str, details = '') +function flashInfo(str, details) { + if (details === undefined) details = ''; $("#msg>.msg-text").text(str) $("#msg>.msg-details").text(details); $("#loading").hide();