Skip to content
This repository has been archived by the owner on Oct 14, 2021. It is now read-only.

fixes #14 #15

Merged
merged 1 commit into from Apr 11, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions build.sh
Expand Up @@ -16,3 +16,5 @@ cat ../src/header.js \
../src/highlighter_patch.js \
../src/footer.js \
>> $outfile

echo Built pkg/github.com.js
10 changes: 5 additions & 5 deletions pkg/github.com.js
Expand Up @@ -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);
});
10 changes: 5 additions & 5 deletions 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);
});