From 0766ffc0f5b76872adf5767f74f60defc9d2b744 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Wed, 23 Nov 2016 13:26:49 +0100 Subject: [PATCH] Added tableId to App.TicketList for sizeable table columns. --- .../app/controllers/_ui_element/ticket_selector.coffee | 1 + .../javascripts/app/controllers/agent_ticket_merge.coffee | 2 ++ 2 files changed, 3 insertions(+) diff --git a/app/assets/javascripts/app/controllers/_ui_element/ticket_selector.coffee b/app/assets/javascripts/app/controllers/_ui_element/ticket_selector.coffee index 344441b06..5a4b0d18e 100644 --- a/app/assets/javascripts/app/controllers/_ui_element/ticket_selector.coffee +++ b/app/assets/javascripts/app/controllers/_ui_element/ticket_selector.coffee @@ -192,6 +192,7 @@ class App.UiElement.ticket_selector @ticketTable: (ticket_ids, ticket_count, item) -> item.find('.js-previewCounter').html(ticket_count) new App.TicketList( + tableId: 'ticket-selector' el: item.find('.js-previewTable') ticket_ids: ticket_ids ) diff --git a/app/assets/javascripts/app/controllers/agent_ticket_merge.coffee b/app/assets/javascripts/app/controllers/agent_ticket_merge.coffee index a42fe5613..e30750f23 100644 --- a/app/assets/javascripts/app/controllers/agent_ticket_merge.coffee +++ b/app/assets/javascripts/app/controllers/agent_ticket_merge.coffee @@ -26,12 +26,14 @@ class App.TicketMerge extends App.ControllerModal content = $( App.view('agent_ticket_merge')() ) new App.TicketList( + tableId: 'ticket-merge-customer-tickets' el: content.find('#ticket-merge-customer-tickets') ticket_ids: @ticket_ids_by_customer radio: true ) new App.TicketList( + tableId: 'ticket-merge-recent-tickets' el: content.find('#ticket-merge-recent-tickets') ticket_ids: @ticket_ids_recent_viewed radio: true