').html(blame.author+ " authed "+blame.authed))
+ .append($('
').html(blame.author + " authed " + blame.authed))
.appendTo(base);
}
});
@@ -207,6 +209,8 @@ $(window).load(function(){
updateBlame();
});
+var scrolling = false;
+
/**
* Hightlight lines which are specified by URL hash.
*/
@@ -217,7 +221,7 @@ function updateHighlighting(){
var lines = hash.substr(1).split('-');
if(lines.length == 1){
$('#' + lines[0]).addClass('highlight');
- if(!updateHighlighting.scrolling){
+ if(!scrolling){
$(window).scrollTop($('#' + lines[0]).offset().top - 40);
}
} else if(lines.length > 1){
@@ -226,11 +230,11 @@ function updateHighlighting(){
for(var i = start; i <= end; i++){
$('#L' + i).addClass('highlight');
}
- if(!updateHighlighting.scrolling){
+ if(!scrolling){
$(window).scrollTop($('#L' + start).offset().top - 40);
}
}
- updateHighlighting.scrolling = true;
+ scrolling = true;
}
}
\ No newline at end of file
diff --git a/src/main/webapp/assets/common/css/gitbucket.css b/src/main/webapp/assets/common/css/gitbucket.css
index 5de423d00..41cca57db 100644
--- a/src/main/webapp/assets/common/css/gitbucket.css
+++ b/src/main/webapp/assets/common/css/gitbucket.css
@@ -1755,9 +1755,12 @@ h6 a.markdown-anchor-link {
padding-left: 50px;
}
+/*
div.container.blame-container{
width:1270px;
}
+*/
+
.line-age-legend {
display: none;
}