Make selectors more specific when scroll to element
This commit is contained in:
parent
67913670dc
commit
9d6e5f0a28
1 changed files with 1 additions and 1 deletions
|
@ -77,7 +77,7 @@ class @MergeRequestTabs
|
||||||
|
|
||||||
scrollToElement: (container) ->
|
scrollToElement: (container) ->
|
||||||
if window.location.hash
|
if window.location.hash
|
||||||
$el = $("#{container} #{window.location.hash}")
|
$el = $("div#{container} #{window.location.hash}")
|
||||||
$('body').scrollTo($el.offset().top) if $el.length
|
$('body').scrollTo($el.offset().top) if $el.length
|
||||||
|
|
||||||
# Activate a tab based on the current action
|
# Activate a tab based on the current action
|
||||||
|
|
Loading…
Reference in a new issue