fix js for IE11 compatibility

This commit is contained in:
Max Pozdeev 2020-09-14 23:25:22 +03:00
parent e199c7b6f9
commit 7022121c43

View file

@ -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();