Skip to content

Commit 42752f3

Browse files
Fix inserting excerpt on compare diff (#11833)
* Fix inserting excerpt on compare diff * use currentTarget * remove comment Co-authored-by: techknowlogick <[email protected]>
1 parent 2b2b3e4 commit 42752f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web_src/js/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2034,7 +2034,7 @@ function initCodeView() {
20342034
box.dataset.folded = String(folded);
20352035
});
20362036
function insertBlobExcerpt(e) {
2037-
const $blob = $(e.target);
2037+
const $blob = $(e.currentTarget);
20382038
const $row = $blob.parent().parent();
20392039
$.get(`${$blob.data('url')}?${$blob.data('query')}&anchor=${$blob.data('anchor')}`, (blob) => {
20402040
$row.replaceWith(blob);

0 commit comments

Comments
 (0)