Fixed jquery 1.9 attr() vs. prop() issue.

This commit is contained in:
Martin Edenhofer 2013-05-22 01:20:50 +02:00
parent 60dea64418
commit c6d7e061f8

View file

@ -86,11 +86,11 @@ 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')
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 )