From 7e222db2393e93c851ad43019636c3c06bbbaa1a Mon Sep 17 00:00:00 2001 From: franck cuny Date: Sat, 25 Sep 2010 17:24:13 +0200 Subject: sort commits; show under the appropriate box --- views/layouts/main.tt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'views/layouts/main.tt') 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("
" + data.content + "
");
+            $("#result-" + id).html("
" + data.content + "
");
           });
           return false;
       })})
-- 
cgit 1.4.1