From cc52b7844df103ae6b5aff786ea86310c008580e Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Wed, 8 Jun 2016 16:06:55 +0200 Subject: [PATCH] Fixed page header binding after ticket creation. --- .../javascripts/app/controllers/ticket_zoom.coffee | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/app/assets/javascripts/app/controllers/ticket_zoom.coffee b/app/assets/javascripts/app/controllers/ticket_zoom.coffee index 7a9534f9c..a8058dbee 100644 --- a/app/assets/javascripts/app/controllers/ticket_zoom.coffee +++ b/app/assets/javascripts/app/controllers/ticket_zoom.coffee @@ -387,11 +387,13 @@ class App.TicketZoom extends App.Controller @scrollToBottom() @positionPageHeaderUpdate() - return if @initDone - @initDone = true + return if @initDone + @initDone = true - # trigger shown if init shown render - App.Event.trigger('ui::ticket::shown', { ticket_id: @ticket_id }) + # if shown was before init rendering, start actions again + if @shown + @positionPageHeaderStart() + App.Event.trigger('ui::ticket::shown', { ticket_id: @ticket_id }) scrollToBottom: => @main.scrollTop( @main.prop('scrollHeight') )