Skip to content

Commit

Permalink
Merge pull request #90 from googlefonts/correct-jquery-selector
Browse files Browse the repository at this point in the history
Only add click handler to nodes in the difftable
  • Loading branch information
m4rc1e authored Sep 11, 2023
2 parents 6af1f06 + f551aaf commit 6bc5a11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/diffenator2/templates/diffenator.html
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@
}
$(function() {
$("#difftable").append(render(fontdiff, true).children())
$(".node").on("click", function(event){ $(this).children().toggle(); event.stopPropagation() })
$("#difftable .node").on("click", function(event){ $(this).children().toggle(); event.stopPropagation() })
});

function wordBreaks() {
Expand Down

0 comments on commit 6bc5a11

Please sign in to comment.