From efe90c4e4dd6fbcfd3e5c0d1adf4a5f1f70ba31e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Ho=CC=88=C3=9Fl?= Date: Sat, 29 Oct 2016 14:30:25 +0200 Subject: [PATCH] Always open motions in original view --- openslides/motions/static/js/motions/motion-services.js | 4 +++- openslides/motions/static/js/motions/site.js | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) 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;