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()
@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') )