From 9c6446edbec6d8c4b275008de1b311d96adb329c Mon Sep 17 00:00:00 2001 From: Mario Date: Fri, 16 Oct 2020 10:29:24 +0000 Subject: fix image src issue in template --- view/js/main.js | 3 ++- 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 @@