mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-24 08:41:56 +08:00
Use Jquery scroll
This commit is contained in:
parent
0437383132
commit
f52a2ef5b8
1 changed files with 1 additions and 7 deletions
|
@ -99,13 +99,7 @@ var RepositoryDatatableRowEditor = (function() {
|
||||||
TABLE.ajax.reload(() => {
|
TABLE.ajax.reload(() => {
|
||||||
animateSpinner(null, false);
|
animateSpinner(null, false);
|
||||||
HelperModule.flashAlertMsg(data.flash, 'success');
|
HelperModule.flashAlertMsg(data.flash, 'success');
|
||||||
|
$('html, body').animate({scrollLeft: 0}, 300);
|
||||||
setTimeout(() => {
|
|
||||||
window.scrollTo({
|
|
||||||
left: 0,
|
|
||||||
behavior: 'smooth'
|
|
||||||
});
|
|
||||||
}, 400);
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue