Merge pull request #3354 from FinnStutzenstein/AssignmentSelectAllFix

Fixing selecting all of assignments
This commit is contained in:
Norman Jäckel 2017-08-18 14:25:09 +02:00 committed by GitHub
commit acdb66ee36

View File

@ -356,6 +356,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;
}); });