Skip to content

Commit 3ed1c09

Browse files
committed
Only register click handler on real rows
- Fixes #86
1 parent 27a3b49 commit 3ed1c09

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

History.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
## Fixed Issues
66

7+
* [#86](https://github.com/pmd/pmd-regression-tester/issues/86): Uncaught TypeError: violation is undefined
78
* [#96](https://github.com/pmd/pmd-regression-tester/issues/96): Fix failing integration tests
89

910
## External Contributions

resources/js/project-report.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ $(document).ready(function () {
118118
},
119119
});
120120

121-
$('#violationsTable tbody').on('click', 'tr', function() {
121+
$('#violationsTable tbody').on('click', 'tr[role=row]', function() {
122122
var tr = $(this).closest('tr');
123123
var row = table.row( tr );
124124

0 commit comments

Comments
 (0)