]> source.dussan.org Git - nextcloud-server.git/commitdiff
More missing js.
authorThomas Tanghus <thomas@tanghus.net>
Wed, 28 Dec 2011 09:31:45 +0000 (10:31 +0100)
committerThomas Tanghus <thomas@tanghus.net>
Wed, 28 Dec 2011 09:31:45 +0000 (10:31 +0100)
apps/contacts/js/interface.js

index 8e74cc7e9ce57a550ab949f46ed210364cc4b955..3190efae3cc3f2c90b0f972f5c1996e12b43c775 100644 (file)
@@ -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'));
+                                       }*/
+                               });
                        }
                }
        }