diff --git a/js/acl.js b/js/acl.js index e383224ca8..36cf74970f 100644 --- a/js/acl.js +++ b/js/acl.js @@ -248,11 +248,16 @@ ACL.prototype.populate = function(data){ that.list_content.height(height); $(data.items).each(function(){ html = "
"+that.item_tpl+"
"; - html = html.format( this.photo, this.name, this.type, this.id, '', this.network, this.link ); + html = html.format(this.photo, this.name, this.type, this.id, '', this.network, this.link); if (this.uids!=undefined) that.group_uids[this.id] = this.uids; //console.log(html); that.list_content.append(html); }); + $(".acl-list-item 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"); + }); that.update_view(); } diff --git a/js/main.js b/js/main.js index 4a75be747a..5cdf2a0804 100644 --- a/js/main.js +++ b/js/main.js @@ -181,7 +181,14 @@ html = notifications_tpl.format(e.attr('href'),e.attr('photo'), text, e.attr('date'), e.attr('seen')); nnm.append(html); }); + + $("img[data-src]", nnm).each(function(i, el){ + // Replace data-src attribute with src attribute for every image + $(el).attr('src', $(el).data("src")); + $(el).removeAttr("data-src"); + }); } + notif = eNotif.attr('count'); if (notif>0){ $("#nav-notifications-linkmenu").addClass("on"); @@ -202,8 +209,7 @@ }); }); - - + NavUpdate(); // Allow folks to stop the ajax page updates with the pause/break key $(document).keydown(function(event) { diff --git a/view/acl_selector.tpl b/view/acl_selector.tpl index 655ea89807..837225a5b1 100644 --- a/view/acl_selector.tpl +++ b/view/acl_selector.tpl @@ -9,7 +9,7 @@ diff --git a/view/nav.tpl b/view/nav.tpl index 8969accb73..04c4931fc6 100644 --- a/view/nav.tpl +++ b/view/nav.tpl @@ -64,5 +64,5 @@ diff --git a/view/smarty3/acl_selector.tpl b/view/smarty3/acl_selector.tpl index 52f0573c8a..e9f8030d7c 100644 --- a/view/smarty3/acl_selector.tpl +++ b/view/smarty3/acl_selector.tpl @@ -9,7 +9,7 @@ diff --git a/view/smarty3/nav.tpl b/view/smarty3/nav.tpl index 832d9f123c..7f7bb6290f 100644 --- a/view/smarty3/nav.tpl +++ b/view/smarty3/nav.tpl @@ -64,5 +64,5 @@ diff --git a/view/theme/cleanzero/nav.tpl b/view/theme/cleanzero/nav.tpl index 981f975c92..17a2f72590 100644 --- a/view/theme/cleanzero/nav.tpl +++ b/view/theme/cleanzero/nav.tpl @@ -69,7 +69,7 @@