diff --git a/dashboard-ui/scripts/notifications.js b/dashboard-ui/scripts/notifications.js index 0b0326585b..65e6210c71 100644 --- a/dashboard-ui/scripts/notifications.js +++ b/dashboard-ui/scripts/notifications.js @@ -92,11 +92,11 @@ $('.btnMarkReadContainer').hide(); return; } - - if (notifications.filter(function(n) { + + if (notifications.filter(function (n) { return !n.IsRead; - + }).length) { $('.btnMarkReadContainer').show(); } else { @@ -114,7 +114,7 @@ } - elem.html(html); + elem.html(html).trigger('create'); } function getNotificationHtml(notification) { @@ -130,7 +130,7 @@ html += ''; html += '
' + notification.Name + '
'; html += '' + humane_date(notification.Date) + '
'; @@ -139,15 +139,19 @@ html += '' + notification.Description + '
'; } + if (notification.Url) { + html += ''; + } + html += '