Added icons to table.

This commit is contained in:
Martin Edenhofer 2014-09-22 00:43:23 +02:00
parent a3ea6c8ec8
commit 65fe501740

View file

@ -96,7 +96,21 @@ class App.DashboardTicketSearch extends App.Controller
attribute.data = attribute.data =
id: refObject.id id: refObject.id
value value
callbackIconHeader = (header) ->
attribute =
name: 'icon'
display: ''
translation: false
style: 'width: 28px'
header.unshift(0)
header[0] = attribute
header
callbackIcon = (value, object, attribute, header, refObject) ->
value = ' '
attribute.class = object.icon()
attribute.link = ''
attribute.title = App.i18n.translateInline( object.iconTitle() )
value
new App.ControllerTable( new App.ControllerTable(
overview: @view.d overview: @view.d
el: html.find('.table-overview'), el: html.find('.table-overview'),
@ -107,7 +121,10 @@ class App.DashboardTicketSearch extends App.Controller
bindRow: bindRow:
events: events:
'click': openTicket 'click': openTicket
callbackHeader: callbackIconHeader
callbackAttributes: callbackAttributes:
icon:
[ callbackIcon ]
customer_id: customer_id:
[ callbackResetLink, callbackUserPopover ] [ callbackResetLink, callbackUserPopover ]
owner_id: owner_id: