From cecc31951c1b12864e13a2dd148a5e96c74d9a5c Mon Sep 17 00:00:00 2001 From: Benno Date: Sun, 8 Dec 2019 02:01:57 +0800 Subject: [PATCH] fix #9198 make diff detail sticky again (#9280) --- web_src/js/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/web_src/js/index.js b/web_src/js/index.js index 7f3874b857..a7aa0d52c4 100644 --- a/web_src/js/index.js +++ b/web_src/js/index.js @@ -2019,6 +2019,7 @@ function initCodeView() { $.get(`${$blob.data('url')}?${$blob.data('query')}&anchor=${$blob.data('anchor')}`, (blob) => { $row.replaceWith(blob); $(`[data-anchor="${$blob.data('anchor')}"]`).on('click', (e) => { insertBlobExcerpt(e); }); + $('.diff-detail-box.ui.sticky').sticky(); }); } $('.ui.blob-excerpt').on('click', (e) => { insertBlobExcerpt(e); });