Retrieve ticket to be able to show while ticket data in ticket info.

This commit is contained in:
Martin Edenhofer 2013-07-26 09:23:19 +02:00
parent cd591ea327
commit a0fae9906c

View file

@ -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')(