Make selectors more specific when scroll to element

This commit is contained in:
Douglas Barbosa Alexandre 2015-12-10 15:42:00 -02:00
parent 67913670dc
commit 9d6e5f0a28

View file

@ -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