Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

fixes #14 #15

Merged
merged 1 commit into from

1 participant

@danielribeiro

No description provided.

Daniel Ribeiro fixes #14 c5f99c3
@danielribeiro danielribeiro merged commit ed886d1 into master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 11, 2013
  1. fixes #14

    Daniel Ribeiro authored
This page is out of date. Refresh to see the latest.
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);
});
Something went wrong with that request. Please try again.