Sha256: 81ed218e1172479e7565cacf9ffccdf0fe5ec768a4209e76a11b06d2197934cd
Contents?: true
Size: 878 Bytes
Versions: 14
Compression:
Stored size: 878 Bytes
Contents
class window.TestingReportView extends Backbone.View initialize: -> @tickets = @options.tickets @projectsCanCloseTicketsFor = @options.projectsCanCloseTicketsFor @tickets.bind 'reset', _.bind(@render, @) @expander = new TableRowExpander() # Prevent tablesorter from exhuming buried rows @tickets.bind 'destroy', (ticket)=> $('table.testing-report-table').trigger('update') @render() render: -> @$el.empty() views = @tickets.map (ticket)=> view = new TestingTicketView ticket: ticket canClose: _.include(@projectsCanCloseTicketsFor, ticket.get('projectId')) @$el.appendView view view @expander.setupForViews views $("[data-tester-id=#{window.userId}]").addClass('current-tester') if window.userId $('table.testing-report-table').tablesorter headers: {'4': {sorter: 'text'}}
Version data entries
14 entries across 14 versions & 1 rubygems