From 42752f3902f53d96598e5329a30374ecc82c9a19 Mon Sep 17 00:00:00 2001 From: Cirno the Strongest <1447794+CirnoT@users.noreply.github.com> Date: Wed, 10 Jun 2020 19:42:14 +0200 Subject: [PATCH] Fix inserting excerpt on compare diff (#11833) * Fix inserting excerpt on compare diff * use currentTarget * remove comment Co-authored-by: techknowlogick --- web_src/js/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web_src/js/index.js b/web_src/js/index.js index efe1663a76..5c2812b460 100644 --- a/web_src/js/index.js +++ b/web_src/js/index.js @@ -2034,7 +2034,7 @@ function initCodeView() { box.dataset.folded = String(folded); }); function insertBlobExcerpt(e) { - const $blob = $(e.target); + const $blob = $(e.currentTarget); const $row = $blob.parent().parent(); $.get(`${$blob.data('url')}?${$blob.data('query')}&anchor=${$blob.data('anchor')}`, (blob) => { $row.replaceWith(blob);