From 634dd70f90e864f2637b342777c402ebff48691e Mon Sep 17 00:00:00 2001 From: FinnStutzenstein Date: Tue, 10 Apr 2018 08:23:10 +0200 Subject: [PATCH] Scroll to top on every state change --- CHANGELOG | 1 + openslides/core/static/js/core/site.js | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG b/CHANGELOG index 09d392434..cfc5d0e66 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -125,6 +125,7 @@ Core: - Added --no-template-caching flag to disable template caching for easier development [#3566]. - Reset scroll level for each new projection [#3686]. +- Scroll to top on every state change [#3689]. Mediafiles: - New form for uploading multiple files [#3650]. diff --git a/openslides/core/static/js/core/site.js b/openslides/core/static/js/core/site.js index 931f8bb14..f4536cc37 100644 --- a/openslides/core/static/js/core/site.js +++ b/openslides/core/static/js/core/site.js @@ -160,6 +160,8 @@ angular.module('OpenSlidesApp.core.site', [ } else { $rootScope.baseViewPermissionsGranted = true; } + // Scroll to top on every state change + $rootScope.gotoTop(); }); } ])