Set online notifications always to seen on controller show().

This commit is contained in:
Martin Edenhofer 2015-09-05 11:01:38 +02:00
parent d1485c6c22
commit 5ece50c39a

View file

@ -89,6 +89,11 @@ class App.TicketZoom extends App.Controller
show: (params) => show: (params) =>
@navupdate '#'
# set all notifications to seen
App.OnlineNotification.seen( 'Ticket', @ticket_id )
# if controller is executed twice, go to latest article # if controller is executed twice, go to latest article
if @activeState if @activeState
@scrollToBottom() @scrollToBottom()
@ -103,8 +108,6 @@ class App.TicketZoom extends App.Controller
@highlighed = true @highlighed = true
@highligher.loadHighlights() @highligher.loadHighlights()
App.OnlineNotification.seen( 'Ticket', @ticket_id )
@navupdate '#'
@positionPageHeaderStart() @positionPageHeaderStart()
hide: => hide: =>