Changeset - 42c1a1c7ffdd
[Not reviewed]
default
0 2 0
Mads Kiilerich - 10 years ago 2015-08-05 12:29:41
madski@unity3d.com
comments: cleanup of full_f_path - just put data attribute on div around diff of each file
2 files changed with 3 insertions and 6 deletions:
0 comments (0 inline, 0 general)
kallithea/public/js/base.js
Show inline comments
 
@@ -654,8 +654,7 @@ var injectInlineForm = function(tr){
 
        return
 
    }
 
    $tr.addClass('form-open hl-comment');
 
    var $node = $tr.parent().parent().parent().find('.full_f_path');
 
    var f_path = $node.attr('path');
 
    var f_path = $tr.parent().closest('.full_f_path').data('f_path');
 
    var lineno = _getLineNo(tr);
 
    var $form = _createInlineForm(tr, f_path, lineno, submit_url);
 

	
kallithea/templates/changeset/diff_block.html
Show inline comments
 
@@ -41,8 +41,7 @@
 
                </span>
 
            </div>
 
        </div>
 
        <div class="code-body">
 
            <div class="full_f_path" path="${h.safe_unicode(path)}"></div>
 
        <div class="code-body full_f_path" data-f_path="${h.safe_unicode(path)}">
 
            ${diff|n}
 
            %if path.rsplit('.')[-1] in ['png', 'gif', 'jpg', 'bmp']:
 
              <div class="btn btn-image-diff-show">Show images</div>
 
@@ -104,8 +103,7 @@
 
              </div>
 
          </div>
 
      </div>
 
        <div class="code-body">
 
            <div class="full_f_path" path="${h.safe_unicode(filenode_path)}"></div>
 
        <div class="code-body full_f_path" data-f_path="${h.safe_unicode(filenode_path)}">
 
            ${diff|n}
 
            %if filenode_path.rsplit('.')[-1] in ['png', 'gif', 'jpg', 'bmp']:
 
              <div class="btn btn-image-diff-show">Show images</div>
0 comments (0 inline, 0 general)