mirror of
https://github.com/go-gitea/gitea.git
synced 2026-09-20 19:53:41 +09:00
enhance: improve issue-pattern capture groups and support both internal&external trackers enabled (#39354)
* Fix #39351 * Fix #17621 * Fix #34881 By the way, fix error handling bugs in `updateRepoUnits` --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
@@ -443,4 +443,11 @@ export function initGlobalFetchAction() {
|
||||
});
|
||||
|
||||
registerGlobalSelectorFunc('[data-fetch-url]', initFetchActionTrigger);
|
||||
|
||||
// when the page is reloaded after a fetch action, scroll to the flash message if any
|
||||
const elFlashMessage = document.querySelector('.ui.message.flash-message');
|
||||
if (elFlashMessage) {
|
||||
window.history.scrollRestoration = 'manual';
|
||||
elFlashMessage?.scrollIntoView({block: 'center'});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user