Moved to new table api.

This commit is contained in:
Martin Edenhofer 2014-06-26 06:17:24 +02:00
parent dc32d6a0dd
commit 3d2619672a
2 changed files with 6 additions and 33 deletions

View file

@ -272,6 +272,7 @@ class App.ControllerTable extends App.Controller
time = =>
@frontendTimeUpdate()
@delay(time, 80)
@delay(time, 80) # to show time immediately for normal tables
@delay(time, 280) # to show time immediately for tables in modal dialog
table

View file

@ -32,22 +32,8 @@ class App.TicketMerge extends App.ControllerModal
ticketItem = App.Ticket.retrieve( ticket_id )
list.push ticketItem
new App.ControllerTable(
el: @el.find('#ticket-merge-customer-tickets'),
overview_extended: [
{ name: 'number', link: true },
{ name: 'title', link: true },
# { name: 'customer', class: 'user-popover', data: { id: true } },
{ name: 'state', translate: true },
# { name: 'priority', translate: true },
{ name: 'group' },
# { name: 'owner', class: 'user-popover', data: { id: true } },
{ name: 'created_at', callback: @humanTime },
# { name: 'last_contact', callback: @frontendTime },
# { name: 'last_contact_agent', callback: @frontendTime },
# { name: 'last_contact_customer', callback: @frontendTime },
# { name: 'first_response', callback: @frontendTime },
# { name: 'close_time', callback: @frontendTime },
],
el: @el.find('#ticket-merge-customer-tickets'),
overview: [ 'number', 'title', 'state', 'group', 'created_at' ]
model: App.Ticket,
objects: list,
radio: true,
@ -59,22 +45,8 @@ class App.TicketMerge extends App.ControllerModal
ticketItem = App.Ticket.retrieve( ticket_id )
list.push ticketItem
new App.ControllerTable(
el: @el.find('#ticket-merge-recent-tickets'),
overview_extended: [
{ name: 'number', link: true },
{ name: 'title', link: true },
# { name: 'customer', class: 'user-popover', data: { id: true } },
{ name: 'state', translate: true },
# { name: 'priority', translate: true },
{ name: 'group' },
# { name: 'owner', class: 'user-popover', data: { id: true } },
{ name: 'created_at', callback: @humanTime },
# { name: 'last_contact', callback: @frontendTime },
# { name: 'last_contact_agent', callback: @frontendTime },
# { name: 'last_contact_customer', callback: @frontendTime },
# { name: 'first_response', callback: @frontendTime },
# { name: 'close_time', callback: @frontendTime },
],
el: @el.find('#ticket-merge-recent-tickets'),
overview: [ 'number', 'title', 'state', 'group', 'created_at' ]
model: App.Ticket,
objects: list,
radio: true,