about summary refs log tree commit diff
path: root/views/layouts
diff options
context:
space:
mode:
authorfranck cuny <franck@lumberjaph.net>2010-09-25 17:24:13 +0200
committerfranck cuny <franck@lumberjaph.net>2010-09-25 17:24:13 +0200
commit7e222db2393e93c851ad43019636c3c06bbbaa1a (patch)
tree9c0990fc504cb59a1c1829c4e8816ebe48639e69 /views/layouts
parentaugment width (diff)
downloadjitterbug-7e222db2393e93c851ad43019636c3c06bbbaa1a.tar.gz
sort commits; show under the appropriate box
Diffstat (limited to '')
-rw-r--r--views/layouts/main.tt4
1 files changed, 3 insertions, 1 deletions
diff --git a/views/layouts/main.tt b/views/layouts/main.tt
index 2512de7..cf3f0e0 100644
--- a/views/layouts/main.tt
+++ b/views/layouts/main.tt
@@ -9,8 +9,10 @@
       $(document).ready(function() {
         $('.builds a').click(function() {
           var url = $(this).attr("href");
+          var id = $(this).parents('.commit').attr('id');
+          console.log("id => " + id);
           $.getJSON(url, null, function(data) {
-            $("#display_test_result").html("<pre>" + data.content + "<pre>");
+            $("#result-" + id).html("<pre>" + data.content + "<pre>");
           });
           return false;
       })})