Go to original view after deleting the Title CR, if it is the last one - fixes #3645
This commit is contained in:
parent
a9e0f36ab9
commit
b2043fa49d
@ -516,13 +516,18 @@ angular.module('OpenSlidesApp.motions.motionservices', ['OpenSlidesApp.motions',
|
|||||||
$scope.$watch(function() {
|
$scope.$watch(function() {
|
||||||
return $('.change-recommendation-list').children().length;
|
return $('.change-recommendation-list').children().length;
|
||||||
}, obj.repositionOriginalAnnotations);
|
}, obj.repositionOriginalAnnotations);
|
||||||
$scope.$watch(function () {
|
|
||||||
return $scope.change_recommendations.length;
|
var checkGotoOriginal = function () {
|
||||||
}, function () {
|
if ($scope.change_recommendations.length === 0 && $scope.title_change_recommendation === null) {
|
||||||
if ($scope.change_recommendations.length === 0) {
|
|
||||||
obj.mode = 'original';
|
obj.mode = 'original';
|
||||||
}
|
}
|
||||||
});
|
};
|
||||||
|
$scope.$watch(function () {
|
||||||
|
return $scope.change_recommendations.length;
|
||||||
|
}, checkGotoOriginal);
|
||||||
|
$scope.$watch(function () {
|
||||||
|
return $scope.title_change_recommendation;
|
||||||
|
}, checkGotoOriginal);
|
||||||
|
|
||||||
var sizeCheckerLastSize = null,
|
var sizeCheckerLastSize = null,
|
||||||
sizeCheckerLastClass = null,
|
sizeCheckerLastClass = null,
|
||||||
|
Loading…
Reference in New Issue
Block a user