Merge pull request #2330 from urbanrotnik/ur-sci-4236

Add timeout to scroll efect fix
This commit is contained in:
Urban Rotnik 2020-01-17 11:26:39 +01:00 committed by GitHub
commit 7b50dd7b53
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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