Just trigger of title has changed.
This commit is contained in:
parent
354c8a8634
commit
8b38291215
1 changed files with 7 additions and 1 deletions
|
@ -598,6 +598,12 @@ class TicketTitle extends App.Controller
|
|||
@render(@ticket)
|
||||
|
||||
render: (ticket) =>
|
||||
|
||||
# check if render is needed
|
||||
if @lastTitle && @lastTitle is ticket.title
|
||||
return
|
||||
@lastTitle = ticket.title
|
||||
|
||||
@html App.view('ticket_zoom/title')(
|
||||
ticket: ticket
|
||||
isCustomer: @isRole('Customer')
|
||||
|
@ -613,7 +619,7 @@ class TicketTitle extends App.Controller
|
|||
@frontendTimeUpdate()
|
||||
|
||||
update: (e) =>
|
||||
title = $(e.target).ceg({ mode: 'textonly' }) || '-'
|
||||
title = $(e.target).ceg() || ''
|
||||
|
||||
# update title
|
||||
if title isnt @ticket.title
|
||||
|
|
Loading…
Reference in a new issue