diff options
-rw-r--r-- | view/js/main.js | 3 | ||||
-rw-r--r-- | view/tpl/notifications_widget.tpl | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/view/js/main.js b/view/js/main.js index 29f7ed7ca..dbaa9a360 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -1867,7 +1867,8 @@ function sse_handleNotifications(obj, replace, followup) { } function sse_handleNotificationsItems(notifyType, data, replace, followup) { - var notifications_tpl = ((notifyType == 'forums') ? decodeURIComponent($("#nav-notifications-forums-template[rel=template]").html()) : decodeURIComponent($("#nav-notifications-template[rel=template]").html())); + + var notifications_tpl = ((notifyType == 'forums') ? decodeURIComponent($("#nav-notifications-forums-template[rel=template]").html().replace('data-src', 'src')) : decodeURIComponent($("#nav-notifications-template[rel=template]").html().replace('data-src', 'src'))); var notify_menu = $("#nav-" + notifyType + "-menu"); var notify_loading = $("#nav-" + notifyType + "-loading"); var notify_count = $("." + notifyType + "-update"); diff --git a/view/tpl/notifications_widget.tpl b/view/tpl/notifications_widget.tpl index abfc922f2..3844ae2bf 100644 --- a/view/tpl/notifications_widget.tpl +++ b/view/tpl/notifications_widget.tpl @@ -143,7 +143,7 @@ </div> <div id="nav-notifications-template" rel="template"> <a class="list-group-item clearfix notification {6}" href="{0}" title="{13}" data-b64mid="{7}" data-notify_id="{8}" data-thread_top="{9}" data-contact_name="{2}" data-contact_addr="{3}" data-when="{5}"> - <img class="menu-img-3" src="{1}"> + <img class="menu-img-3" data-src="{1}"> <span class="contactname">{2} <span class="font-weight-normal text-muted">{3}</span></span> <span class="dropdown-sub-text">{4}</span><br> <span class="dropdown-sub-text notifications-autotime" title="{5}">{5}</span> @@ -152,7 +152,7 @@ <div id="nav-notifications-forums-template" rel="template"> <a class="list-group-item clearfix notification notification-forum" href="{0}" title="{4} - {3}" data-b64mid="{7}" data-notify_id="{8}" data-thread_top="{9}" data-contact_name="{2}" data-contact_addr="{3}" data-b64mids='{12}'> <span class="float-right badge badge-secondary">{10}</span> - <img class="menu-img-1" src="{1}"> + <img class="menu-img-1" data-src="{1}"> <span class="">{2}</span> <i class="fa fa-{11} text-muted"></i> </a> |