diff options
author | Jonathan "Duke" Leto <jonathan@leto.net> | 2011-05-12 10:01:54 -0700 |
---|---|---|
committer | Jonathan "Duke" Leto <jonathan@leto.net> | 2011-05-12 10:01:54 -0700 |
commit | fef188675a589b614f73340ffa01b95bf2cd0f86 (patch) | |
tree | 6d61a42f7a25d89bbd087ea9f77197c1723ecb9f /public | |
parent | Make the number of builds easier on the eyes (diff) | |
download | jitterbug-fef188675a589b614f73340ffa01b95bf2cd0f86.tar.gz |
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
Diffstat (limited to '')
-rw-r--r-- | public/js/common.js | 6 |
1 files changed, 3 insertions, 3 deletions
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() { |