summaryrefslogtreecommitdiffstats
path: root/web_src
diff options
context:
space:
mode:
authorCirno the Strongest <1447794+CirnoT@users.noreply.github.com>2020-06-10 19:42:14 +0200
committerGitHub <noreply@github.com>2020-06-10 13:42:14 -0400
commit42752f3902f53d96598e5329a30374ecc82c9a19 (patch)
tree241c6e9275cd7a3098b7b5444d10e61dd82cee18 /web_src
parent2b2b3e4c3726ef224e87bb444340bebd3a70badb (diff)
downloadgitea-42752f3902f53d96598e5329a30374ecc82c9a19.tar.gz
gitea-42752f3902f53d96598e5329a30374ecc82c9a19.zip
Fix inserting excerpt on compare diff (#11833)
* Fix inserting excerpt on compare diff * use currentTarget * remove comment Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'web_src')
-rw-r--r--web_src/js/index.js2
1 files changed, 1 insertions, 1 deletions
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);