Scroll left on new item in datatables

This commit is contained in:
Urban Rotnik 2020-01-16 16:34:45 +01:00
parent 7655dd0bea
commit 96457d07bb

View file

@ -99,6 +99,10 @@ var RepositoryDatatableRowEditor = (function() {
TABLE.ajax.reload(() => {
animateSpinner(null, false);
HelperModule.flashAlertMsg(data.flash, 'success');
window.scrollTo({
left: 0,
behavior: 'smooth'
});
});
});