mirror of
https://github.com/maxpozdeev/mytinytodo.git
synced 2026-03-11 08:55:27 +00:00
fix js for IE11 compatibility
This commit is contained in:
parent
e199c7b6f9
commit
7022121c43
1 changed files with 4 additions and 2 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue