Fixed jquery 1.9 attr() vs. prop() issue.
This commit is contained in:
parent
60dea64418
commit
c6d7e061f8
1 changed files with 6 additions and 6 deletions
|
@ -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 )
|
||||
|
|
Loading…
Reference in a new issue