From c96423f56ef43bd5dbd93f2bf974e9175d9da691 Mon Sep 17 00:00:00 2001 From: Eric Kever Date: Fri, 12 Aug 2011 21:41:14 -0400 Subject: [PATCH] DEEERRRRRRRPPPPPPPPPPPPPPPPPPPP. --- javascripts/app.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/javascripts/app.js b/javascripts/app.js index ce81b2e..cf7a95f 100644 --- a/javascripts/app.js +++ b/javascripts/app.js @@ -105,7 +105,7 @@ var tabs = Skeleton.filterTags(Skeleton.getElementsByClassName(document, "tabs"), ["ul"]); for(var i = 0, j = tabs.length; i < j; i++){ - (function(){ + (function(){ //This is necessary to isolate each individual tab set in its own scope var tabNum = i, tabList = tabs[tabNum].getElementsByTagName("li"); @@ -129,8 +129,7 @@ Skeleton.addClass(this, "active"); - //contentElement = document.getElementById(contentLocation.substr(1)); - contentElement = Skeleton.getElementsByClassName(Skeleton.getElementsByClassName(tabs[tabNum].parentNode, "tabs-content")[0], contentLocation.substr(1))[0]; + contentElement = document.getElementById(contentLocation.substr(1)); Skeleton.addClass(contentElement, "active"); siblings = contentElement.parentNode.getElementsByTagName("li");