Fixing selecting all of assignments

This commit is contained in:
FinnStutzenstein 2017-08-16 09:49:07 +02:00
parent f0d840148e
commit 1fb9b07c6b

View File

@ -352,6 +352,7 @@ angular.module('OpenSlidesApp.assignments.site', [
$scope.isSelectMode = false; $scope.isSelectMode = false;
// check all checkboxes // check all checkboxes
$scope.checkAll = function () { $scope.checkAll = function () {
$scope.selectedAll = !$scope.selectedAll;
angular.forEach($scope.assignments, function (assignment) { angular.forEach($scope.assignments, function (assignment) {
assignment.selected = $scope.selectedAll; assignment.selected = $scope.selectedAll;
}); });