about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJonathan "Duke" Leto <jonathan@leto.net>2011-05-12 10:01:54 -0700
committerJonathan "Duke" Leto <jonathan@leto.net>2011-05-12 10:01:54 -0700
commitfef188675a589b614f73340ffa01b95bf2cd0f86 (patch)
tree6d61a42f7a25d89bbd087ea9f77197c1723ecb9f
parentMake the number of builds easier on the eyes (diff)
downloadjitterbug-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
-rw-r--r--public/js/common.js6
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() {