Skip to content

Commit

Permalink
fix go-gitea#9198 make diff detail sticky again (go-gitea#9280)
Browse files Browse the repository at this point in the history
  • Loading branch information
blueworrybear authored and techknowlogick committed Dec 7, 2019
1 parent 0e56337 commit cecc319
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions web_src/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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); });
Expand Down

0 comments on commit cecc319

Please sign in to comment.