Skip to content
This repository
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 26 lines (21 sloc) 0.91 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
= render "commits/commit_box"
= render "commits/diffs", diffs: @commit.diffs
= render "notes/notes_with_form", tid: @commit.id, tt: "commit"
= render "notes/per_line_form"


:javascript
  $(function(){
    PerLineNotes.init();
    var w, h;
    $('.diff_file').each(function(){
      $('.image.diff_removed img', this).on('load', $.proxy(function(event){
        var w = event.currentTarget.naturalWidth
          , h = event.currentTarget.naturalHeight;
        $('.image.diff_removed .image-info', this).append(' | <b>W:</b> ' + w + 'px | <b>H:</b> ' + h + 'px');
      }, this));
      $('.image.diff_added img', this).on('load', $.proxy(function(event){
        var w = event.currentTarget.naturalWidth
          , h = event.currentTarget.naturalHeight;
        $('.image.diff_added .image-info', this).append(' | <b>W:</b> ' + w + 'px | <b>H:</b> ' + h + 'px');
      }, this));
      
    });
    
  });
Something went wrong with that request. Please try again.