aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2020-10-16 10:29:24 +0000
committerMario <mario@mariovavti.com>2020-10-16 10:29:24 +0000
commit9c6446edbec6d8c4b275008de1b311d96adb329c (patch)
tree8a13594181e56c6d87d1373caf1599adec7b2b5e
parentd84f0030beaf353b3bd3e02e21019663988227ef (diff)
downloadvolse-hubzilla-9c6446edbec6d8c4b275008de1b311d96adb329c.tar.gz
volse-hubzilla-9c6446edbec6d8c4b275008de1b311d96adb329c.tar.bz2
volse-hubzilla-9c6446edbec6d8c4b275008de1b311d96adb329c.zip
fix image src issue in template
-rw-r--r--view/js/main.js3
-rw-r--r--view/tpl/notifications_widget.tpl4
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>