diff --git a/openslides/motions/static/js/motions/motion-services.js b/openslides/motions/static/js/motions/motion-services.js index ea439a8ee..ab49e4fe7 100644 --- a/openslides/motions/static/js/motions/motion-services.js +++ b/openslides/motions/static/js/motions/motion-services.js @@ -452,7 +452,7 @@ angular.module('OpenSlidesApp.motions.motionservices', ['OpenSlidesApp.motions', }, 0, false); }; - obj.init = function (_scope) { + obj.init = function (_scope, viewMode) { $scope = _scope; $scope.$evalAsync(function() { obj.repositionOriginalAnnotations(); @@ -477,6 +477,8 @@ angular.module('OpenSlidesApp.motions.motionservices', ['OpenSlidesApp.motions', $scope.$on('$destroy', function() { $interval.cancel(sizeChecker); }); + + obj.mode = viewMode; }; return obj; diff --git a/openslides/motions/static/js/motions/site.js b/openslides/motions/static/js/motions/site.js index 7124d0e8d..d54514c96 100644 --- a/openslides/motions/static/js/motions/site.js +++ b/openslides/motions/static/js/motions/site.js @@ -1200,7 +1200,7 @@ angular.module('OpenSlidesApp.motions.site', [ // Change recommendation viewing $scope.viewChangeRecommendations = ChangeRecommmendationView; - $scope.viewChangeRecommendations.init($scope); + $scope.viewChangeRecommendations.init($scope, 'original'); // PDF creating functions $scope.pdfExport = MotionPDFExport;