Browse Source

fix #9198 make diff detail sticky again (#9280)

tags/v1.11.0-rc1
Benno techknowlogick 5 years ago
parent
commit
8d62f6d164
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      web_src/js/index.js

+ 1
- 0
web_src/js/index.js View File

@@ -2019,6 +2019,7 @@ function initCodeView() {
$.get(`${$blob.data('url')}?${$blob.data('query')}&anchor=${$blob.data('anchor')}`, (blob) => { $.get(`${$blob.data('url')}?${$blob.data('query')}&anchor=${$blob.data('anchor')}`, (blob) => {
$row.replaceWith(blob); $row.replaceWith(blob);
$(`[data-anchor="${$blob.data('anchor')}"]`).on('click', (e) => { insertBlobExcerpt(e); }); $(`[data-anchor="${$blob.data('anchor')}"]`).on('click', (e) => { insertBlobExcerpt(e); });
$('.diff-detail-box.ui.sticky').sticky();
}); });
} }
$('.ui.blob-excerpt').on('click', (e) => { insertBlobExcerpt(e); }); $('.ui.blob-excerpt').on('click', (e) => { insertBlobExcerpt(e); });


Loading…
Cancel
Save