fix js tooltips in product-list

This commit is contained in:
Marion Muszynski 2017-02-23 15:37:06 +01:00
parent 3f23070f12
commit c4edb90c2b
3 changed files with 8 additions and 6 deletions

View File

@ -5,10 +5,12 @@ $(document).ready(function() {
var endreached = false; var endreached = false;
var filter = new Array(); var filter = new Array();
$('.random').hover(function() { $('.random').each(function(){
$('.info_random').stop(true, true).fadeIn(); $(this).hover(function() {
$(this).parent().children('.info_random').stop(true, true).fadeIn();
}, function(){ }, function(){
$('.info_random').stop(true, true).fadeOut(); $(this).parent().children('.info_random').stop(true, true).fadeOut();
});
}); });
$(window).scroll(function() { $(window).scroll(function() {

View File

@ -11,7 +11,7 @@
<img src="{$img_dir}random.png" alt="{l s='Random'}"> <img src="{$img_dir}random.png" alt="{l s='Random'}">
</div> </div>
<div class="info_random"> <div class="info_random">
<p>{l s='Bébé Boutik vous propose se produit de façon aléatoire !'}</p> <p>{l s='Bébé Boutik vous propose ce produit de façon aléatoire !'}</p>
</div> </div>
{/if} {/if}
<h3>{if isset($product.new) && $product.new == 1}<span class="new">{l s='New' mod='categoryscroll'}</span>{/if}<a href="{$product.link|escape:'htmlall':'UTF-8'}" title="{$product.name|escape:'htmlall':'UTF-8'}">{$product.name|truncate:64:'...'|escape:'htmlall':'UTF-8'}</a></h3> <h3>{if isset($product.new) && $product.new == 1}<span class="new">{l s='New' mod='categoryscroll'}</span>{/if}<a href="{$product.link|escape:'htmlall':'UTF-8'}" title="{$product.name|escape:'htmlall':'UTF-8'}">{$product.name|truncate:64:'...'|escape:'htmlall':'UTF-8'}</a></h3>

View File

@ -40,7 +40,7 @@
<img src="{$img_dir}random.png" alt="{l s='Random'}"> <img src="{$img_dir}random.png" alt="{l s='Random'}">
</div> </div>
<div class="info_random"> <div class="info_random">
<p>{l s='Bébé Boutik vous propose se produit de façon aléatoire !'}</p> <p>{l s='Bébé Boutik vous propose ce produit de façon aléatoire !'}</p>
</div> </div>
{/if} {/if}
<h3>{if isset($product.new) && $product.new == 1}<span class="new">{l s='New'}</span>{/if}<a href="{$product.link|escape:'htmlall':'UTF-8'}" title="{$product.name|escape:'htmlall':'UTF-8'}">{$product.name|truncate:64:'...'|escape:'htmlall':'UTF-8'}</a></h3> <h3>{if isset($product.new) && $product.new == 1}<span class="new">{l s='New'}</span>{/if}<a href="{$product.link|escape:'htmlall':'UTF-8'}" title="{$product.name|escape:'htmlall':'UTF-8'}">{$product.name|truncate:64:'...'|escape:'htmlall':'UTF-8'}</a></h3>