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

Use Jquery scroll [SCI-4236]
This commit is contained in:
Urban Rotnik 2020-01-20 10:59:04 +01:00 committed by GitHub
commit c29aee081b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -99,13 +99,7 @@ var RepositoryDatatableRowEditor = (function() {
TABLE.ajax.reload(() => {
animateSpinner(null, false);
HelperModule.flashAlertMsg(data.flash, 'success');
setTimeout(() => {
window.scrollTo({
left: 0,
behavior: 'smooth'
});
}, 400);
$('html, body').animate({scrollLeft: 0}, 300);
});
});