From a0fae9906c856aec907d74da9b060025546b919c Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Fri, 26 Jul 2013 09:23:19 +0200 Subject: [PATCH] Retrieve ticket to be able to show while ticket data in ticket info. --- .../app/controllers/_application_controller.js.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/app/controllers/_application_controller.js.coffee b/app/assets/javascripts/app/controllers/_application_controller.js.coffee index 08bbdbc74..a9392af40 100644 --- a/app/assets/javascripts/app/controllers/_application_controller.js.coffee +++ b/app/assets/javascripts/app/controllers/_application_controller.js.coffee @@ -283,11 +283,11 @@ class App.Controller extends Spine.Controller placement: position title: -> ticket_id = $(@).data('id') - ticket = App.Ticket.find( ticket_id ) + ticket = App.Ticket.retrieve( ticket_id ) ticket.title content: -> ticket_id = $(@).data('id') - ticket = App.Ticket.find( ticket_id ) + ticket = App.Ticket.retrieve( ticket_id ) ticket.humanTime = ui.humanTime(ticket.created_at) # insert data App.view('ticket_info_small')(