Fixed safari problem.

This commit is contained in:
Martin Edenhofer 2012-10-04 18:56:33 +02:00
parent 9e3bf0a42a
commit 2cd8315d67

View file

@ -156,7 +156,7 @@ class Index extends App.Controller
@frontendTimeUpdate()
# scrall to article if given
if @article_id
if @article_id && document.getElementById( 'article-' + @article_id )
offset = document.getElementById( 'article-' + @article_id ).offsetTop
offset = offset - 45
scrollTo = ->