Skip to content
Snippets Groups Projects
Commit 97471b5c authored by Thomas Tanghus's avatar Thomas Tanghus
Browse files

Thumbnails was overwriting default style so hover and active didn't work....

Thumbnails was overwriting default style so hover and active didn't work. Moved them to the 'a' element instead.
parent 830a34a1
No related branches found
No related tags found
No related merge requests found
#contacts { padding-left:5px; padding-top: 5px; background: #fff; } #contacts { padding-left:2px; padding-top: 5px; background: #fff; }
#contacts li { padding-left:25px;background:url('../img/person.svg') no-repeat; } #leftcontent a { height: 23px; display: block; margin: 0 0 0 0; padding: 0 0 0 25px; }
#chooseaddressbook {margin-right: 170px; float: right;} #chooseaddressbook {margin-right: 170px; float: right;}
#contacts_details_name { font-weight:bold;font-size:1.1em;margin-left:25%;} #contacts_details_name { font-weight:bold;font-size:1.1em;margin-left:25%;}
#contacts_details_photo { margin:.5em 0em .5em 25%; } #contacts_details_photo { margin:.5em 0em .5em 25%; }
......
...@@ -113,9 +113,9 @@ Contacts={ ...@@ -113,9 +113,9 @@ Contacts={
lazyupdate:function(){ lazyupdate:function(){
//alert('lazyupdate'); //alert('lazyupdate');
$('#contacts li').live('inview', function(){ $('#contacts li').live('inview', function(){
if (!$(this).attr('style')) { if (!$(this).find('a').attr('style')) {
//alert($(this).data('id') + ' has background: ' + $(this).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 { }/* else {
alert($(this).data('id') + ' has style ' + $(this).attr('style').match('url')); alert($(this).data('id') + ' has style ' + $(this).attr('style').match('url'));
}*/ }*/
...@@ -301,9 +301,9 @@ $(document).ready(function(){ ...@@ -301,9 +301,9 @@ $(document).ready(function(){
// bottom part of element is visible // bottom part of element is visible
} else { } else {
// whole part of element is visible // 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')); //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 { }/* else {
alert($(this).data('id') + ' has style ' + $(this).attr('style').match('url')); alert($(this).data('id') + ' has style ' + $(this).attr('style').match('url'));
}*/ }*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment