diff --git a/app/assets/javascripts/app/controllers/ticket_zoom/highlighter.coffee b/app/assets/javascripts/app/controllers/ticket_zoom/highlighter.coffee index a9906f67d..e693777fd 100644 --- a/app/assets/javascripts/app/controllers/ticket_zoom/highlighter.coffee +++ b/app/assets/javascripts/app/controllers/ticket_zoom/highlighter.coffee @@ -212,6 +212,8 @@ class App.TicketZoomHighlighter extends App.Controller # - clears the selection toggleHighlightAtSelection: (article, article_id) => + return if !article + selection = rangy.getSelection() # activate selection background diff --git a/app/assets/javascripts/app/views/layout_ref/ticket_zoom.jst.eco b/app/assets/javascripts/app/views/layout_ref/ticket_zoom.jst.eco index fc260ebf1..ef343cb0c 100644 --- a/app/assets/javascripts/app/views/layout_ref/ticket_zoom.jst.eco +++ b/app/assets/javascripts/app/views/layout_ref/ticket_zoom.jst.eco @@ -12,7 +12,7 @@