[gitg/wip/patch-stage: 9/11] Store offset and length in row



commit 1a431ca81f75725a942bd11677e878b1a9f128d8
Author: Jesse van den Kieboom <jessevdk gmail com>
Date:   Tue Dec 31 15:15:10 2013 +0100

    Store offset and length in row

 libgitg/resources/diff-view-html-builder.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libgitg/resources/diff-view-html-builder.js b/libgitg/resources/diff-view-html-builder.js
index db5f4ae..f4f3158 100644
--- a/libgitg/resources/diff-view-html-builder.js
+++ b/libgitg/resources/diff-view-html-builder.js
@@ -44,7 +44,7 @@ function diff_file(file, lnstate, data)
                        var l = h.lines[j];
                        var o = String.fromCharCode(l.type);
 
-                       var row = '<tr class="';
+                       var row = '<tr data-offset="' + l.offset + '" data-length="' + l.length + '" class="';
 
                        switch (o)
                        {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]