[*] FO : New hooks for home tabs

This commit is contained in:
gRoussac
2013-10-16 11:44:55 +02:00
parent 2e65214c39
commit 62aaf16d60
22 changed files with 156 additions and 229 deletions
+5 -5
View File
@@ -25,12 +25,12 @@
$(document).ready(function()
{
$('.title_block').click(function(){
$('.home_tab li a').click(function(){
var button = $(this);
$('#index #center_column .products_block').removeClass('active');
button.parent('.products_block').addClass('active');
$('#index #center_column .products_block .block_content').hide(0, function(){
button.next('.block_content').show(0);
$('.home_tab li').removeClass('active');
button.parent('li').addClass('active');
$('.home_tab_content .product_list').hide(0, function(){
$('.home_tab_content .' + button.prop('class')).show(0).addClass('active').removeClass('hidden');
});
});
});