Fixed not shown user in ticket zoom if user isn't already available in local collection.
This commit is contained in:
parent
e1ad4ffa93
commit
7fd6176c6a
1 changed files with 9 additions and 4 deletions
|
@ -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 )
|
||||
|
|
Loading…
Reference in a new issue