Skip to content

Commit

Permalink
Merge pull request #181 from dpmittal/search_results
Browse files Browse the repository at this point in the history
CB-252: Make whole row selectable in search results
  • Loading branch information
paramsingh committed Feb 27, 2018
2 parents d34e96a + ff93e19 commit 562f086
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions critiquebrainz/frontend/templates/search/selector.html
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,11 @@ <h3>{{ _('Place selection') }}</h3>
alert({{ _("Failed to load more search results!") | tojson }});
});
}

/* function that makes the whole row selectable and onClick will 'check' the respective row's radio button */
$('#results tr').click(function(){
$(this).find('input[type=radio]').prop('checked', true);
});
</script>
{% endblock %}
{% endif %}

0 comments on commit 562f086

Please sign in to comment.