mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-24 00:29:30 +08:00
Merge pull request #2330 from urbanrotnik/ur-sci-4236
Add timeout to scroll efect fix
This commit is contained in:
commit
7b50dd7b53
1 changed files with 7 additions and 4 deletions
|
@ -99,10 +99,13 @@ var RepositoryDatatableRowEditor = (function() {
|
|||
TABLE.ajax.reload(() => {
|
||||
animateSpinner(null, false);
|
||||
HelperModule.flashAlertMsg(data.flash, 'success');
|
||||
window.scrollTo({
|
||||
left: 0,
|
||||
behavior: 'smooth'
|
||||
});
|
||||
|
||||
setTimeout(() => {
|
||||
window.scrollTo({
|
||||
left: 0,
|
||||
behavior: 'smooth'
|
||||
});
|
||||
}, 400);
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue