From f551aafdccda4f5e8d2b5d5ad13992e581ddd1e8 Mon Sep 17 00:00:00 2001 From: Simon Cozens Date: Thu, 31 Aug 2023 09:48:22 +0100 Subject: [PATCH] Only add click handler to nodes in the difftable --- src/diffenator2/templates/diffenator.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/diffenator2/templates/diffenator.html b/src/diffenator2/templates/diffenator.html index e8526cc..81adda0 100644 --- a/src/diffenator2/templates/diffenator.html +++ b/src/diffenator2/templates/diffenator.html @@ -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() {