From 1092d0829c82253de8f173173728649107f2ce59 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Wed, 14 Nov 2012 07:12:23 +0100 Subject: [PATCH] Improved search result list information. --- app/assets/javascripts/app/controllers/navigation.js.coffee | 6 +++++- app/assets/javascripts/app/views/navigation.jst.eco | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/app/controllers/navigation.js.coffee b/app/assets/javascripts/app/controllers/navigation.js.coffee index bcfd38129..71016b740 100644 --- a/app/assets/javascripts/app/controllers/navigation.js.coffee +++ b/app/assets/javascripts/app/controllers/navigation.js.coffee @@ -93,6 +93,10 @@ class App.Navigation extends App.Controller for ticket_raw in data.tickets ticket = App.Collection.find( 'Ticket', ticket_raw.id ) + + # set human time + ticket.humanTime = @humanTime(ticket.created_at) + @tickets.push ticket @render(user) ) @@ -131,7 +135,7 @@ class App.Navigation extends App.Controller @term = @el.find('#global-search').val() return if !@term return if @term is search - @delay( searchFunction, 200, 'search' ) + @delay( searchFunction, 220, 'search' ) ) getItems: (data) -> diff --git a/app/assets/javascripts/app/views/navigation.jst.eco b/app/assets/javascripts/app/views/navigation.jst.eco index 2ed847e28..1864adafe 100644 --- a/app/assets/javascripts/app/views/navigation.jst.eco +++ b/app/assets/javascripts/app/views/navigation.jst.eco @@ -29,7 +29,7 @@