diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2015-12-10 15:42:00 -0200 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2015-12-10 15:42:00 -0200 |
commit | 9d6e5f0a28cda3dcbf2dcbcb8a869c0873ea3afc (patch) | |
tree | ed9aa4855922071c373e97b81626d9ba316293e4 /app/assets | |
parent | 67913670dcc6ca228654f2c6e14d0992636c5bb7 (diff) | |
download | gitlab-ce-9d6e5f0a28cda3dcbf2dcbcb8a869c0873ea3afc.tar.gz |
Make selectors more specific when scroll to element
Diffstat (limited to 'app/assets')
-rw-r--r-- | app/assets/javascripts/merge_request_tabs.js.coffee | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/merge_request_tabs.js.coffee b/app/assets/javascripts/merge_request_tabs.js.coffee index 79ef746d57f..9e2dc1250c9 100644 --- a/app/assets/javascripts/merge_request_tabs.js.coffee +++ b/app/assets/javascripts/merge_request_tabs.js.coffee @@ -77,7 +77,7 @@ class @MergeRequestTabs scrollToElement: (container) -> if window.location.hash - $el = $("#{container} #{window.location.hash}") + $el = $("div#{container} #{window.location.hash}") $('body').scrollTo($el.offset().top) if $el.length # Activate a tab based on the current action |