Merge pull request #3646 from CatoTH/Issue3645-Goto-Original-View-After-Deleting-Title-CR
Go to original view after deleting the Title CR...
This commit is contained in:
commit
78747fad35
@ -516,13 +516,18 @@ 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) {
|
||||
|
||||
var checkGotoOriginal = function () {
|
||||
if ($scope.change_recommendations.length === 0 && $scope.title_change_recommendation === null) {
|
||||
obj.mode = 'original';
|
||||
}
|
||||
});
|
||||
};
|
||||
$scope.$watch(function () {
|
||||
return $scope.change_recommendations.length;
|
||||
}, checkGotoOriginal);
|
||||
$scope.$watch(function () {
|
||||
return $scope.title_change_recommendation;
|
||||
}, checkGotoOriginal);
|
||||
|
||||
var sizeCheckerLastSize = null,
|
||||
sizeCheckerLastClass = null,
|
||||
|
Loading…
Reference in New Issue
Block a user