diff options
Diffstat (limited to '')
-rw-r--r-- | views/layouts/main.tt | 4 |
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; })}) |