Fixed page header binding after ticket creation.

This commit is contained in:
Martin Edenhofer 2016-06-08 16:06:55 +02:00
parent 8051c1c741
commit cc52b7844d

View file

@ -387,11 +387,13 @@ class App.TicketZoom extends App.Controller
@scrollToBottom() @scrollToBottom()
@positionPageHeaderUpdate() @positionPageHeaderUpdate()
return if @initDone return if @initDone
@initDone = true @initDone = true
# trigger shown if init shown render # if shown was before init rendering, start actions again
App.Event.trigger('ui::ticket::shown', { ticket_id: @ticket_id }) if @shown
@positionPageHeaderStart()
App.Event.trigger('ui::ticket::shown', { ticket_id: @ticket_id })
scrollToBottom: => scrollToBottom: =>
@main.scrollTop( @main.prop('scrollHeight') ) @main.scrollTop( @main.prop('scrollHeight') )