]> source.dussan.org Git - gitea.git/commitdiff
fix #9198 make diff detail sticky again (#9280)
authorBenno <blueworrybear@gmail.com>
Sat, 7 Dec 2019 18:01:57 +0000 (02:01 +0800)
committertechknowlogick <techknowlogick@gitea.io>
Sat, 7 Dec 2019 18:01:57 +0000 (13:01 -0500)
web_src/js/index.js

index 7f3874b857f38d952c2874f9e41c2e4d9b540327..a7aa0d52c431904b2aa04c1f78c061d2be6f7e70 100644 (file)
@@ -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); });