From 76e37a88a9a65dc222b0ea3489222fee109b0a88 Mon Sep 17 00:00:00 2001 From: Raymond Yee Date: Fri, 28 Oct 2011 12:36:04 -0700 Subject: [PATCH] In supporter page: * setting tab3 as the active one by default * first attempt to sort books into the proper tab (though it's not totally accurate to say that books with successful last campaigns are the only unglued books --- frontend/templates/supporter.html | 35 ++++++++++++++++++------------- 1 file changed, 21 insertions(+), 14 deletions(-) diff --git a/frontend/templates/supporter.html b/frontend/templates/supporter.html index 55c0321d..e7b9dc4f 100644 --- a/frontend/templates/supporter.html +++ b/frontend/templates/supporter.html @@ -18,28 +18,28 @@ } ); $j('.tabs1').click(function(){ - $j('#tabs').find('.active').removeClass('active'); + $j('.tabs').find('.active').removeClass('active'); $j(this).addClass('active'); $j('.content-block-content').find('.active').removeClass('active'); - $j('#tabs-1').addClass('active').show(300); - $j('#tabs-2').hide(200); - $j('#tabs-3').hide(200); + $j('.tabs-1').addClass('active').show(300); + $j('.tabs-2').hide(200); + $j('.tabs-3').hide(200); }); $j('.tabs2').click(function(){ - $j('#tabs').find('.active').removeClass('active'); + $j('.tabs').find('.active').removeClass('active'); $j(this).addClass('active'); $j('.content-block-content').find('.active').removeClass('active'); - $j('#tabs-2').addClass('active').show(300); - $j('#tabs-1').hide(200); - $j('#tabs-3').hide(200); + $j('.tabs-2').addClass('active').show(300); + $j('.tabs-1').hide(200); + $j('.tabs-3').hide(200); }); $j('.tabs3').click(function(){ - $j('#tabs').find('.active').removeClass('active'); + $j('.tabs').find('.active').removeClass('active'); $j(this).addClass('active'); $j('.content-block-content').find('.active').removeClass('active'); - $j('#tabs-3').addClass('active').show(300); - $j('#tabs-2').hide(200); - $j('#tabs-1').hide(200); + $j('.tabs-3').addClass('active').show(300); + $j('.tabs-2').hide(200); + $j('.tabs-1').hide(200); }); $j('.empty-wishlist span.bounce-search').click(function(){ $j('div.js-search-inner').effect("bounce", 500, function() { @@ -193,7 +193,7 @@ how do I integrate the your wishlist thing with the tabs thing?