Improved search result list information.
This commit is contained in:
parent
82d4084080
commit
1092d0829c
2 changed files with 6 additions and 2 deletions
|
@ -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) ->
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
</form>
|
||||
<ul class="dropdown-menu">
|
||||
<% for ticket in @tickets: %>
|
||||
<li><a href="#ticket/zoom/<%= ticket.id %>"><%= ticket.title %> - Ticket#<%= ticket.number %></a></li>
|
||||
<li><a href="#ticket/zoom/<%= ticket.id %>">Ticket <%= ticket.number %> - <%- ticket.humanTime %> - <%= @P( ticket.group) %><br><%= ticket.title %></a></li>
|
||||
<% end %>
|
||||
</ul>
|
||||
</li>
|
||||
|
|
Loading…
Reference in a new issue