Try this:
// Table: Add class row selected
$('.table tbody :radio').change(function() {
$('.table tbody :radio:checked').closest('tr').addClass('selected-row');
$('.table tbody :radio:not(:checked)').closest('tr').removeClass('selected-row');
});