Switch back to original view after deleting last change recommendation

This commit is contained in:
Tobias Hößl 2016-11-13 10:52:54 +01:00
parent e49411250a
commit fca2605a2b

View File

@ -461,6 +461,13 @@ angular.module('OpenSlidesApp.motions.motionservices', ['OpenSlidesApp.motions',
$scope.$watch(function() {
return $('.change-recommendation-list').children().length;
}, obj.repositionOriginalAnnotations);
$scope.$watch(function () {
return $scope.change_recommendations.length;
}, function () {
if ($scope.change_recommendations.length === 0) {
obj.mode = 'original';
}
});
var sizeCheckerLastSize = null,
sizeCheckerLastClass = null,