diff options
author | Fatih Acet <acetfatih@gmail.com> | 2017-07-14 20:16:56 +0300 |
---|---|---|
committer | Fatih Acet <acetfatih@gmail.com> | 2017-07-21 22:35:26 +0300 |
commit | 3c2d98f4c2bad4cccc981ff2e4bc2b5212eba9d6 (patch) | |
tree | 949180c822771f5436a49c9fec10af515b22f49c /app/assets/javascripts/lib | |
parent | b26637c5b127caddc72484ae7d7adbf702dfc967 (diff) |
IssueNotesRefactor: Address MR comments.
Diffstat (limited to 'app/assets/javascripts/lib')
-rw-r--r-- | app/assets/javascripts/lib/utils/common_utils.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/assets/javascripts/lib/utils/common_utils.js b/app/assets/javascripts/lib/utils/common_utils.js index 1580bb67d65..92ff9a1ed8c 100644 --- a/app/assets/javascripts/lib/utils/common_utils.js +++ b/app/assets/javascripts/lib/utils/common_utils.js @@ -161,12 +161,12 @@ }; gl.utils.scrollToElement = function($el) { - var top = $el.offset().top; - var mrTabsHeight = $('.merge-request-tabs').height() || 0; - var headerHeight = $('.navbar-gitlab').height() || 0; + const top = $el.offset().top; + const mrTabsHeight = $('.merge-request-tabs').height() || 0; + const headerHeight = $('.navbar-gitlab').height() || 0; return $('body, html').animate({ - scrollTop: top - mrTabsHeight - headerHeight + scrollTop: top - mrTabsHeight - headerHeight, }, 200); }; |