summaryrefslogtreecommitdiff
path: root/app/assets
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2015-12-10 15:42:00 -0200
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2015-12-10 15:42:00 -0200
commit9d6e5f0a28cda3dcbf2dcbcb8a869c0873ea3afc (patch)
treeed9aa4855922071c373e97b81626d9ba316293e4 /app/assets
parent67913670dcc6ca228654f2c6e14d0992636c5bb7 (diff)
downloadgitlab-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.coffee2
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