From 6f643a67611c849849424c193be69ba6a23a1259 Mon Sep 17 00:00:00 2001 From: Paul Irish Date: Mon, 16 May 2011 18:03:36 -0700 Subject: [PATCH] fixing some weird stuff in the app.js --- javascripts/app.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/javascripts/app.js b/javascripts/app.js index 93e8793..c5222c3 100644 --- a/javascripts/app.js +++ b/javascripts/app.js @@ -10,8 +10,8 @@ $(document).ready(function() { /* Tabs Activiation ================================================== */ - var tabs = $('ul.tabs'); - tabsContent = $('ul.tabs-content') + var tabs = $('ul.tabs'), + tabsContent = $('ul.tabs-content'); tabs.each(function(i) { //Get all tabs @@ -19,8 +19,7 @@ $(document).ready(function() { tab.click(function(e) { //Get Location of tab's content - var contentLocation = $(this).attr("href")+"Tab" - contentLocation = contentLocation; + var contentLocation = $(this).attr("href") + "Tab"; //Let go if not a hashed one if(contentLocation.charAt(0)=="#") { @@ -32,8 +31,8 @@ $(document).ready(function() { $(this).addClass('active'); //Show Tab Content - $(contentLocation).parent('.tabs-content').children('li').css({"display":"none"}); - $(contentLocation).css({"display":"block"}); + $(contentLocation).parent('.tabs-content').children('li').hide(); + $(contentLocation).show(); } });