From 2cd8315d67878b032552e142ee2f3db2219c126c Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Thu, 4 Oct 2012 18:56:33 +0200 Subject: [PATCH] Fixed safari problem. --- .../javascripts/app/controllers/agent_ticket_zoom.js.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/app/controllers/agent_ticket_zoom.js.coffee b/app/assets/javascripts/app/controllers/agent_ticket_zoom.js.coffee index 344858f9c..b5e84dbc5 100644 --- a/app/assets/javascripts/app/controllers/agent_ticket_zoom.js.coffee +++ b/app/assets/javascripts/app/controllers/agent_ticket_zoom.js.coffee @@ -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 = ->