summaryrefslogtreecommitdiff
path: root/app/views/commits/show.html.haml
blob: 9a483aa2a9ac8fcbf58763772e95ae4e8c5c2ed6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
= render "commits/commit_box"
= render "commits/diffs", diffs: @commit.diffs
= render "notes/notes", tid: @commit.id, tt: "commit"
= render "notes/per_line_form"


:javascript
  $(document).ready(function(){
    $(".line_note_link, .line_note_reply_link").live("click", function(e) {
      var form = $(".per_line_form");
      $(this).parent().parent().after(form);
      form.find("#note_line_code").val($(this).attr("line_code"));
      form.show();
      return false;
    });
  });