diff options
author | Douwe Maan <douwe@selenight.nl> | 2016-07-29 05:09:50 +0300 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2016-07-29 05:09:50 +0300 |
commit | 27471d01c2ec2f3cfcc19211892954568eafe68d (patch) | |
tree | d6237b88f14454ad4df36c3782d3ee0493e2fdff /app/assets/javascripts/diff_notes/components/jump_to_discussion.js.es6 | |
parent | 1c2eefef3f67d9d221b6465ec77907940732e789 (diff) |
Don’t depend on unique class.
Diffstat (limited to 'app/assets/javascripts/diff_notes/components/jump_to_discussion.js.es6')
-rw-r--r-- | app/assets/javascripts/diff_notes/components/jump_to_discussion.js.es6 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/diff_notes/components/jump_to_discussion.js.es6 b/app/assets/javascripts/diff_notes/components/jump_to_discussion.js.es6 index 9c2dc158a14..a0c859ab7f6 100644 --- a/app/assets/javascripts/diff_notes/components/jump_to_discussion.js.es6 +++ b/app/assets/javascripts/diff_notes/components/jump_to_discussion.js.es6 @@ -56,7 +56,7 @@ } if (nextUnresolvedDiscussionId) { - $.scrollTo(`.${nextUnresolvedDiscussionId}`, { + $.scrollTo(`.discussion[data-discussion-id="${nextUnresolvedDiscussionId}"]`, { offset: -($('.navbar-gitlab').outerHeight() + $('.layout-nav').outerHeight()) }); } |