Fixed not shown user in ticket zoom if user isn't already available in local collection.

This commit is contained in:
Martin Edenhofer 2012-10-17 22:53:42 +02:00
parent e1ad4ffa93
commit 7fd6176c6a

View file

@ -32,8 +32,13 @@ class App.TicketCustomer extends App.ControllerModal
customer_id: params['customer_id']
)
# close modal
@modalHide()
callback = =>
# reload zoom view
@zoom.render()
# close modal
@modalHide()
# reload zoom view
@zoom.render()
# load user if not already exists
App.Collection.find( 'User', params['customer_id'], callback )