diff options
author | franck cuny <franck@lumberjaph.net> | 2010-09-25 17:24:13 +0200 |
---|---|---|
committer | franck cuny <franck@lumberjaph.net> | 2010-09-25 17:24:13 +0200 |
commit | 7e222db2393e93c851ad43019636c3c06bbbaa1a (patch) | |
tree | 9c0990fc504cb59a1c1829c4e8816ebe48639e69 /views/layouts/main.tt | |
parent | augment width (diff) | |
download | jitterbug-7e222db2393e93c851ad43019636c3c06bbbaa1a.tar.gz |
sort commits; show under the appropriate box
Diffstat (limited to 'views/layouts/main.tt')
-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; })}) |