Hotfix for motion projection
This commit is contained in:
parent
2a42368157
commit
b419818b20
@ -1075,6 +1075,7 @@ angular.module('OpenSlidesApp.motions.site', [
|
|||||||
.controller('MotionDetailCtrl', [
|
.controller('MotionDetailCtrl', [
|
||||||
'$scope',
|
'$scope',
|
||||||
'$http',
|
'$http',
|
||||||
|
'$timeout',
|
||||||
'operator',
|
'operator',
|
||||||
'ngDialog',
|
'ngDialog',
|
||||||
'MotionForm',
|
'MotionForm',
|
||||||
@ -1095,7 +1096,7 @@ angular.module('OpenSlidesApp.motions.site', [
|
|||||||
'MotionCommentsInlineEditing',
|
'MotionCommentsInlineEditing',
|
||||||
'Projector',
|
'Projector',
|
||||||
'ProjectionDefault',
|
'ProjectionDefault',
|
||||||
function($scope, $http, operator, ngDialog, MotionForm,
|
function($scope, $http, $timeout, operator, ngDialog, MotionForm,
|
||||||
ChangeRecommmendationCreate, ChangeRecommmendationView, MotionChangeRecommendation, MotionPDFExport,
|
ChangeRecommmendationCreate, ChangeRecommmendationView, MotionChangeRecommendation, MotionPDFExport,
|
||||||
Motion, MotionComment, Category, Mediafile, Tag, User, Workflow, Config, motion, MotionInlineEditing,
|
Motion, MotionComment, Category, Mediafile, Tag, User, Workflow, Config, motion, MotionInlineEditing,
|
||||||
MotionCommentsInlineEditing, Projector, ProjectionDefault) {
|
MotionCommentsInlineEditing, Projector, ProjectionDefault) {
|
||||||
@ -1155,12 +1156,16 @@ angular.module('OpenSlidesApp.motions.site', [
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
$scope.projectionMode = getProjectionMode();
|
$scope.projectionMode = getProjectionMode();
|
||||||
|
// TODO: Fix this timeout; check what mode is projected.
|
||||||
$scope.setProjectionMode = function (mode) {
|
$scope.setProjectionMode = function (mode) {
|
||||||
$scope.projectionMode = mode;
|
$scope.projectionMode = mode;
|
||||||
|
|
||||||
var projectedIds = motion.isProjected();
|
var projectedIds = motion.isProjected();
|
||||||
_.forEach(projectedIds, function (id) {
|
_.forEach(projectedIds, function (id) {
|
||||||
motion.project(id, mode.mode);
|
motion.project(id, mode.mode);
|
||||||
|
$timeout(function () {
|
||||||
|
motion.project(id, mode.mode);
|
||||||
|
}, 100);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
$scope.commentsFields = Config.get('motions_comments').value;
|
$scope.commentsFields = Config.get('motions_comments').value;
|
||||||
|
Loading…
Reference in New Issue
Block a user