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;
// check all checkboxes
$scope.checkAll = function () {
$scope.selectedAll = !$scope.selectedAll;
angular.forEach($scope.assignments, function (assignment) {
assignment.selected = $scope.selectedAll;
});