diff --git a/app/assets/javascripts/app/controllers/agent_ticket_merge.js.coffee b/app/assets/javascripts/app/controllers/agent_ticket_merge.js.coffee index a512747c0..42c09b701 100644 --- a/app/assets/javascripts/app/controllers/agent_ticket_merge.js.coffee +++ b/app/assets/javascripts/app/controllers/agent_ticket_merge.js.coffee @@ -86,15 +86,15 @@ class App.TicketMerge extends App.ControllerModal ) @el.delegate('[name="master_ticket_number"]', 'focus', (e) -> - $(e.target).parents().find('[name="radio"]').attr( 'checked', false ) + $(e.target).parents().find('[name="radio"]').prop( 'checked', false ) ) @el.delegate('[name="radio"]', 'click', (e) -> - if $(e.target).attr('checked') - ticket_id = $(e.target).val() - ticket = App.Collection.find( 'Ticket', ticket_id ) - $(e.target).parents().find('[name="master_ticket_number"]').val( ticket.number ) - ) + if $(e.target).prop('checked') + ticket_id = $(e.target).val() + ticket = App.Collection.find( 'Ticket', ticket_id ) + $(e.target).parents().find('[name="master_ticket_number"]').val( ticket.number ) + ) @modalShow()