diff --git a/js/acl.js b/js/acl.js index e383224ca..36cf74970 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 4a75be747..5cdf2a080 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 655ea8980..837225a5b 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 8969accb7..04c4931fc 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 52f0573c8..e9f8030d7 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 832d9f123..7f7bb6290 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 981f975c9..17a2f7259 100644 --- a/view/theme/cleanzero/nav.tpl +++ b/view/theme/cleanzero/nav.tpl @@ -69,7 +69,7 @@