Retrieve ticket to be able to show while ticket data in ticket info.
This commit is contained in:
parent
cd591ea327
commit
a0fae9906c
1 changed files with 2 additions and 2 deletions
|
@ -283,11 +283,11 @@ class App.Controller extends Spine.Controller
|
||||||
placement: position
|
placement: position
|
||||||
title: ->
|
title: ->
|
||||||
ticket_id = $(@).data('id')
|
ticket_id = $(@).data('id')
|
||||||
ticket = App.Ticket.find( ticket_id )
|
ticket = App.Ticket.retrieve( ticket_id )
|
||||||
ticket.title
|
ticket.title
|
||||||
content: ->
|
content: ->
|
||||||
ticket_id = $(@).data('id')
|
ticket_id = $(@).data('id')
|
||||||
ticket = App.Ticket.find( ticket_id )
|
ticket = App.Ticket.retrieve( ticket_id )
|
||||||
ticket.humanTime = ui.humanTime(ticket.created_at)
|
ticket.humanTime = ui.humanTime(ticket.created_at)
|
||||||
# insert data
|
# insert data
|
||||||
App.view('ticket_info_small')(
|
App.view('ticket_info_small')(
|
||||||
|
|
Loading…
Reference in a new issue