Skip to content

Commit

Permalink
Merge pull request jasny#524 from poratuk/row-without-link
Browse files Browse the repository at this point in the history
Target is undefined on row whitout link (rowlink)
  • Loading branch information
jasny authored Mar 7, 2017
2 parents 9830085 + 51ae080 commit d7805a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/rowlink.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
Rowlink.prototype.click = function(e, ctrlKey) {
var target = $(e.currentTarget).closest('tr').find(this.options.target)[0]

if ($(e.target)[0] === target) return
if (typeof target === 'undefined' || $(e.target)[0] === target) return
if (e.type === 'mouseup' && e.which !== 2) return

e.preventDefault();
Expand Down

0 comments on commit d7805a4

Please sign in to comment.