Skip to content

Commit

Permalink
Do not stop propagation for interactive elements in tables
Browse files Browse the repository at this point in the history
  • Loading branch information
hkdobrev committed Feb 18, 2014
1 parent 19ef639 commit 2a79584
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/js/general.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ $(function(){
});

$('body').on('click', 'td', function(e) {
e.stopPropagation();
if (e.target && ['a', 'button', 'input', 'select', 'textarea', 'label'].indexOf(e.target.nodeName.toLowerCase()) === -1)
{
e.stopPropagation();
$(this).closest('tr').children('td:first').find('input[type="checkbox"]').each(function(){
$(this).click();
});
Expand Down

0 comments on commit 2a79584

Please sign in to comment.