diff options
author | Thomas Tanghus <thomas@tanghus.net> | 2011-12-30 23:39:31 +0100 |
---|---|---|
committer | Thomas Tanghus <thomas@tanghus.net> | 2011-12-30 23:39:31 +0100 |
commit | 97471b5c2a079be34aeff099019f219135b9cb2c (patch) | |
tree | 42c8846aba9756f4fffe54fb85a1a6aa10396656 /apps/contacts/js/interface.js | |
parent | 830a34a10a8f084b125106033b4e515555c49319 (diff) | |
download | nextcloud-server-97471b5c2a079be34aeff099019f219135b9cb2c.tar.gz nextcloud-server-97471b5c2a079be34aeff099019f219135b9cb2c.zip |
Thumbnails was overwriting default style so hover and active didn't work. Moved them to the 'a' element instead.
Diffstat (limited to 'apps/contacts/js/interface.js')
-rw-r--r-- | apps/contacts/js/interface.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/contacts/js/interface.js b/apps/contacts/js/interface.js index 3190efae3cc..35639ef6cc7 100644 --- a/apps/contacts/js/interface.js +++ b/apps/contacts/js/interface.js @@ -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')); }*/ |