comments: fixed scroll issue.
This commit is contained in:
parent
9c43777217
commit
9464700f9b
1 changed files with 3 additions and 1 deletions
|
|
@ -461,7 +461,9 @@ var CommentsController = function() {
|
|||
};
|
||||
|
||||
this.scrollToComment = function(node, offset, outdated) {
|
||||
var offset = offset || 1;
|
||||
if (offset === undefined) {
|
||||
offset = 0;
|
||||
}
|
||||
var outdated = outdated || false;
|
||||
var klass = outdated ? 'div.comment-outdated' : 'div.comment-current';
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue