diff options
author | Thomas Tanghus <thomas@tanghus.net> | 2011-12-28 10:31:45 +0100 |
---|---|---|
committer | Thomas Tanghus <thomas@tanghus.net> | 2011-12-28 10:31:45 +0100 |
commit | a70fbcea287885c1b61c5f19ea078649e02267d2 (patch) | |
tree | 023b262736f46bbab15c9148757865661f9f4c5d /apps/contacts | |
parent | 5a99310cdf31f6c82871f775f2a8c5abe924e2e8 (diff) | |
download | nextcloud-server-a70fbcea287885c1b61c5f19ea078649e02267d2.tar.gz nextcloud-server-a70fbcea287885c1b61c5f19ea078649e02267d2.zip |
More missing js.
Diffstat (limited to 'apps/contacts')
-rw-r--r-- | apps/contacts/js/interface.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/apps/contacts/js/interface.js b/apps/contacts/js/interface.js index 8e74cc7e9ce..3190efae3cc 100644 --- a/apps/contacts/js/interface.js +++ b/apps/contacts/js/interface.js @@ -108,6 +108,18 @@ Contacts={ }) $.each(contacts, function(idx, itm) { contactlist.append(itm); }); */ + setTimeout(Contacts.UI.Contacts.lazyupdate(), 500); + }, + lazyupdate:function(){ + //alert('lazyupdate'); + $('#contacts li').live('inview', function(){ + if (!$(this).attr('style')) { + //alert($(this).data('id') + ' has background: ' + $(this).attr('style')); + $(this).css('background','url(thumbnail.php?id='+$(this).data('id')+') no-repeat'); + }/* else { + alert($(this).data('id') + ' has style ' + $(this).attr('style').match('url')); + }*/ + }); } } } |