From c6d7e061f853b5f13360d8152b3e834f73cfabc3 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Wed, 22 May 2013 01:20:50 +0200 Subject: [PATCH] Fixed jquery 1.9 attr() vs. prop() issue. --- .../app/controllers/agent_ticket_merge.js.coffee | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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()