From fef188675a589b614f73340ffa01b95bf2cd0f86 Mon Sep 17 00:00:00 2001 From: "Jonathan \"Duke\" Leto" Date: Thu, 12 May 2011 10:01:54 -0700 Subject: Fix #66 which was caused by the content of the builds-day div changing, which was used to look up other divs. We use id's now to avoid this problem --- public/js/common.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'public/js') diff --git a/public/js/common.js b/public/js/common.js index 93c080a..144b9c7 100644 --- a/public/js/common.js +++ b/public/js/common.js @@ -1,8 +1,8 @@ $(document).ready(function() { $('.builds-day').click(function() { - var day = $(this).text(); - var class = "#commits-day-" + day; - $(class).toggle(); + var commit_id = $(this).attr('id').replace("builds","commits"); + console.log(commit_id); + $("#" + commit_id).toggle(); }); /* This times out on large test outputs $('.builds a').click(function() { -- cgit 1.4.1