From f52a2ef5b8fb67ce8e3cfdc29c56e478e733377c Mon Sep 17 00:00:00 2001 From: Urban Rotnik Date: Fri, 17 Jan 2020 16:23:24 +0100 Subject: [PATCH] Use Jquery scroll --- app/assets/javascripts/repositories/row_editor.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/app/assets/javascripts/repositories/row_editor.js b/app/assets/javascripts/repositories/row_editor.js index ac23689ef..873d9ce33 100644 --- a/app/assets/javascripts/repositories/row_editor.js +++ b/app/assets/javascripts/repositories/row_editor.js @@ -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); }); });