From cfad83084a0118dfdd88d4339109e3595e43ace5 Mon Sep 17 00:00:00 2001 From: Olaf Conradi Date: Fri, 2 May 2014 02:40:04 +0200 Subject: Also for notifications. --- view/js/main.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'view/js/main.js') diff --git a/view/js/main.js b/view/js/main.js index 38cde749c..17ef578be 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -645,12 +645,15 @@ function updateConvItems(mode,data) { } else { $("#nav-" + notifyType + "-menu").html(notifications_all + notifications_mark); - $(data.notify).each(function() { html = notifications_tpl.format(this.notify_link,this.photo,this.name,this.message,this.when,this.class); $("#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"); + }); } }); -- cgit v1.2.3