Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #15 from danielribeiro/new-new-github-diff

fixes #14
  • Loading branch information...
commit ed886d1237d50075d8737aae22fdcda01b43ade3 2 parents 3b8b789 + c5f99c3
@danielribeiro authored
Showing with 12 additions and 10 deletions.
  1. +2 −0  build.sh
  2. +5 −5 pkg/github.com.js
  3. +5 −5 src/footer.js
View
2  build.sh
@@ -16,3 +16,5 @@ cat ../src/header.js \
../src/highlighter_patch.js \
../src/footer.js \
>> $outfile
+
+echo Built pkg/github.com.js
View
10 pkg/github.com.js
@@ -2160,15 +2160,15 @@ window['_pr_isIE6'] = function () {
// Chain
return this;
}
-})(jQuery); $(".diff-line").each(function() {
+})(jQuery); $(".diff-line-code").each(function() {
var t = $(this);
var text = $.trim(t.text());
t.contents().filter(function() { return this.nodeType == Node.TEXT_NODE; }).remove()
t.append("<pre></pre>");
t.find("pre").text(text);
})
- $(".diff-line pre").addClass("highlight");
- $("td.gd.diff-line pre").css({backgroundColor: "#FDD"});
- $("td.gi.diff-line pre").css({backgroundColor: "#DFD"});
- setTimeout(function(){ $.SyntaxHighlighter.init({lineNumbers: false}); }, 900);
+ $(".diff-line-code pre").addClass("highlight");
+ $(".file-diff-line.gd .diff-line-code pre").css({backgroundColor: "#FDD"});
+ $(".file-diff-line.gi .diff-line-code pre").css({backgroundColor: "#DFD"});
+ setTimeout(function(){ $.SyntaxHighlighter.init({lineNumbers: false}); }, 200);
});
View
10 src/footer.js
@@ -1,12 +1,12 @@
- $(".diff-line").each(function() {
+ $(".diff-line-code").each(function() {
var t = $(this);
var text = $.trim(t.text());
t.contents().filter(function() { return this.nodeType == Node.TEXT_NODE; }).remove()
t.append("<pre></pre>");
t.find("pre").text(text);
})
- $(".diff-line pre").addClass("highlight");
- $("td.gd.diff-line pre").css({backgroundColor: "#FDD"});
- $("td.gi.diff-line pre").css({backgroundColor: "#DFD"});
- setTimeout(function(){ $.SyntaxHighlighter.init({lineNumbers: false}); }, 900);
+ $(".diff-line-code pre").addClass("highlight");
+ $(".file-diff-line.gd .diff-line-code pre").css({backgroundColor: "#FDD"});
+ $(".file-diff-line.gi .diff-line-code pre").css({backgroundColor: "#DFD"});
+ setTimeout(function(){ $.SyntaxHighlighter.init({lineNumbers: false}); }, 200);
});
Please sign in to comment.
Something went wrong with that request. Please try again.