Also for notifications.
This commit is contained in:
parent
32a34f76df
commit
cfad83084a
@ -645,12 +645,15 @@ function updateConvItems(mode,data) {
|
|||||||
} else {
|
} else {
|
||||||
$("#nav-" + notifyType + "-menu").html(notifications_all + notifications_mark);
|
$("#nav-" + notifyType + "-menu").html(notifications_all + notifications_mark);
|
||||||
|
|
||||||
|
|
||||||
$(data.notify).each(function() {
|
$(data.notify).each(function() {
|
||||||
html = notifications_tpl.format(this.notify_link,this.photo,this.name,this.message,this.when,this.class);
|
html = notifications_tpl.format(this.notify_link,this.photo,this.name,this.message,this.when,this.class);
|
||||||
$("#nav-" + notifyType + "-menu").append(html);
|
$("#nav-" + notifyType + "-menu").append(html);
|
||||||
});
|
});
|
||||||
|
$(".dropdown-menu img[data-src]").each(function(i, el){
|
||||||
|
// Replace data-src attribute with src attribute for every image
|
||||||
|
$(el).attr('src', $(el).data("src"));
|
||||||
|
$(el).removeAttr("data-src");
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<div id="banner" class="hidden-sm hidden-xs">{{$banner}}</div>
|
<div id="banner" class="hidden-sm hidden-xs">{{$banner}}</div>
|
||||||
|
|
||||||
<ul id="nav-notifications-template" style="display:none;" rel="template">
|
<ul id="nav-notifications-template" style="display:none;" rel="template">
|
||||||
<li class="{5}"><a href="{0}" title="{2} {3}"><img src="{1}"><span class='contactname'>{2}</span>{3}<br><span class="notif-when">{4}</span></a></li>
|
<li class="{5}"><a href="{0}" title="{2} {3}"><img data-src="{1}"><span class='contactname'>{2}</span>{3}<br><span class="notif-when">{4}</span></a></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
Reference in New Issue
Block a user