From 886618dfecd5052ad71451a09417fe8d5b3a6efc Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Tue, 1 Mar 2016 15:10:47 +0100 Subject: [PATCH] Fixed not shown initial ticket customer avatar. --- .../javascripts/app/controllers/ticket_zoom.coffee | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/assets/javascripts/app/controllers/ticket_zoom.coffee b/app/assets/javascripts/app/controllers/ticket_zoom.coffee index 227d7f8d9..88cca40fd 100644 --- a/app/assets/javascripts/app/controllers/ticket_zoom.coffee +++ b/app/assets/javascripts/app/controllers/ticket_zoom.coffee @@ -350,15 +350,15 @@ class App.TicketZoom extends App.Controller # rerender whole sidebar if customer or organization has changed if @ticketLastAttributes.customer_id isnt @ticket.customer_id || @ticketLastAttributes.organization_id isnt @ticket.organization_id - new App.WidgetAvatar( - el: elLocal.find('.ticketZoom-header .js-avatar') - user_id: @ticket.customer_id - size: 50 - ) if elLocal el = elLocal else el = @el + new App.WidgetAvatar( + el: el.find('.ticketZoom-header .js-avatar') + user_id: @ticket.customer_id + size: 50 + ) @sidebar = new App.TicketZoomSidebar( el: el.find('.tabsSidebar') sidebarState: @sidebarState