Add timeout to scroll efect

This commit is contained in:
Urban Rotnik 2020-01-17 10:40:18 +01:00
parent 96457d07bb
commit 0437383132

View file

@ -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);
});
});