mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-25 01:03:18 +08:00
Add timeout to scroll efect
This commit is contained in:
parent
96457d07bb
commit
0437383132
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