Always open motions in original view

This commit is contained in:
Tobias Hößl 2016-10-29 14:30:25 +02:00
parent 4d48f2d8a5
commit efe90c4e4d
2 changed files with 4 additions and 2 deletions

View File

@ -452,7 +452,7 @@ angular.module('OpenSlidesApp.motions.motionservices', ['OpenSlidesApp.motions',
}, 0, false); }, 0, false);
}; };
obj.init = function (_scope) { obj.init = function (_scope, viewMode) {
$scope = _scope; $scope = _scope;
$scope.$evalAsync(function() { $scope.$evalAsync(function() {
obj.repositionOriginalAnnotations(); obj.repositionOriginalAnnotations();
@ -477,6 +477,8 @@ angular.module('OpenSlidesApp.motions.motionservices', ['OpenSlidesApp.motions',
$scope.$on('$destroy', function() { $scope.$on('$destroy', function() {
$interval.cancel(sizeChecker); $interval.cancel(sizeChecker);
}); });
obj.mode = viewMode;
}; };
return obj; return obj;

View File

@ -1200,7 +1200,7 @@ angular.module('OpenSlidesApp.motions.site', [
// Change recommendation viewing // Change recommendation viewing
$scope.viewChangeRecommendations = ChangeRecommmendationView; $scope.viewChangeRecommendations = ChangeRecommmendationView;
$scope.viewChangeRecommendations.init($scope); $scope.viewChangeRecommendations.init($scope, 'original');
// PDF creating functions // PDF creating functions
$scope.pdfExport = MotionPDFExport; $scope.pdfExport = MotionPDFExport;