]> source.dussan.org Git - nextcloud-server.git/commitdiff
Thumbnails was overwriting default style so hover and active didn't work. Moved them...
authorThomas Tanghus <thomas@tanghus.net>
Fri, 30 Dec 2011 22:39:31 +0000 (23:39 +0100)
committerThomas Tanghus <thomas@tanghus.net>
Fri, 30 Dec 2011 22:39:31 +0000 (23:39 +0100)
apps/contacts/css/styles.css
apps/contacts/js/interface.js

index 53b469e6eed96f51f25273d0c8021b8f8dee3421..c890be8582403c2f8ae242d51e81d3b75d174520 100644 (file)
@@ -1,5 +1,5 @@
-#contacts { padding-left:5px; padding-top: 5px; background: #fff; }
-#contacts li { padding-left:25px;background:url('../img/person.svg') no-repeat; }
+#contacts { padding-left:2px; padding-top: 5px; background: #fff; }
+#leftcontent a { height: 23px; display: block; margin: 0 0 0 0; padding: 0 0 0 25px; }
 #chooseaddressbook {margin-right: 170px; float: right;}
 #contacts_details_name { font-weight:bold;font-size:1.1em;margin-left:25%;}
 #contacts_details_photo { margin:.5em 0em .5em 25%; }
index 3190efae3cc3f2c90b0f972f5c1996e12b43c775..35639ef6cc79f460ecc6171e4561beadb4d6ee65 100644 (file)
@@ -113,9 +113,9 @@ Contacts={
                        lazyupdate:function(){
                                //alert('lazyupdate');
                                $('#contacts li').live('inview', function(){
-                                       if (!$(this).attr('style')) {
+                                       if (!$(this).find('a').attr('style')) {
                                                //alert($(this).data('id') + ' has background: ' + $(this).attr('style'));
-                                               $(this).css('background','url(thumbnail.php?id='+$(this).data('id')+') no-repeat');
+                                               $(this).find('a').css('background','url(thumbnail.php?id='+$(this).data('id')+') no-repeat');
                                        }/* else {
                                                alert($(this).data('id') + ' has style ' + $(this).attr('style').match('url'));
                                        }*/
@@ -301,9 +301,9 @@ $(document).ready(function(){
                                // bottom part of element is visible
                        } else {
                                // whole part of element is visible
-                               if (!$(this).attr('style')) {
+                               if (!$(this).find('a').attr('style')) {
                                        //alert($(this).data('id') + ' has background: ' + $(this).attr('style'));
-                                       $(this).css('background','url(thumbnail.php?id='+$(this).data('id')+') no-repeat');
+                                       $(this).find('a').css('background','url(thumbnail.php?id='+$(this).data('id')+') no-repeat');
                                }/* else {
                                        alert($(this).data('id') + ' has style ' + $(this).attr('style').match('url'));
                                }*/