From b4e02afc9f18693b71a13d67aa8f7a5b689eba5d Mon Sep 17 00:00:00 2001 From: Andromeda Yelton Date: Wed, 8 Feb 2012 08:56:44 -0500 Subject: [PATCH] unbreaking this too --- static/js/tabs.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/static/js/tabs.js b/static/js/tabs.js index 0e7ca21d..1c5c6dbc 100644 --- a/static/js/tabs.js +++ b/static/js/tabs.js @@ -14,11 +14,17 @@ var tabs1 = $j('.tabs1'); var tabs2 = $j('.tabs2'); var tabs3 = $j('.tabs3'); + var tabsDash1 = $j('.tabs-1'); + var tabsDash2 = $j('.tabs-2'); + var tabsDash3 = $j('.tabs-3'); + var tabsLink1 = $j('li.tabs1'); + var tabsLink2 = $j('li.tabs2'); + var tabsLink3 = $j('li.tabs3'); var contentBlockContent = $j('#content-block-content'); tabs1.click(function(){ tabs.find('.active').removeClass('active'); - $j('li.tabs1').addClass('active'); + tabsLink1.addClass('active'); contentBlockContent.find('.active').removeClass('active'); tabsDash1.addClass('active').show(300); tabsDash2.hide(200); @@ -27,7 +33,7 @@ }); tabs2.click(function(){ tabs.find('.active').removeClass('active'); - $j('li.tabs2').addClass('active'); + tabsLink2.addClass('active'); contentBlockContent.find('.active').removeClass('active'); tabsDash2.addClass('active').show(300); tabsDash1.hide(200); @@ -36,7 +42,7 @@ }); tabs3.click(function(){ tabs.find('.active').removeClass('active'); - $j('li.tabs3').addClass('active'); + tabsLink3.addClass('active'); contentBlockContent.find('.active').removeClass('active'); tabsDash3.addClass('active').show(300); tabsDash2.hide(200);