diff options
author | Benno <blueworrybear@gmail.com> | 2019-12-08 02:01:57 +0800 |
---|---|---|
committer | techknowlogick <techknowlogick@gitea.io> | 2019-12-07 13:01:57 -0500 |
commit | cecc31951c1b12864e13a2dd148a5e96c74d9a5c (patch) | |
tree | 6b6404c36c55bb6c2c05748f6777111812f4bdb0 | |
parent | 0e56337f64a6009eebb92c0bc1eb4114aa723086 (diff) | |
download | gitea-cecc31951c1b12864e13a2dd148a5e96c74d9a5c.tar.gz gitea-cecc31951c1b12864e13a2dd148a5e96c74d9a5c.zip |
fix #9198 make diff detail sticky again (#9280)
-rw-r--r-- | web_src/js/index.js | 1 |
1 files changed, 1 insertions, 0 deletions
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); }); |