Make a whole table row clickable with jQuery

$('#orders').delegate('tr[data-href]', 'click', function (e) {
    if ($(e.target).is('a, input')) {
        return;
    }

    window.location = $(this).attr('data-href');
});