Permalink
Browse files

Update age ranges for ÖTSV e-Kids

  • Loading branch information...
andreas-gruenbacher committed Feb 3, 2018
1 parent b244ea7 commit e95fe44224ae064b5f94fe64ad06efd35c086ff1
Showing with 22 additions and 22 deletions.
  1. +1 −1 Makefile
  2. +8 −8 htdocs/admin/riders/controller.js
  3. +13 −13 htdocs/register/event/controller.js
@@ -7,7 +7,7 @@ SED = sed
MARKOC = backend/node_modules/marko/bin/markoc

# AngularJS
ANGULAR_BASE=https://code.angularjs.org/
ANGULAR_BASE=https://code.angularjs.org
ANGULAR_VERSION=1.6.8

DOWNLOAD_FILES = \
@@ -822,16 +822,16 @@ var ridersController = [
} else if (event.type.match(/^otsv-ecup/)) {
if (class_ == 1) {
$scope.max_age_year = 6;
} else if (class_ == 2 || class_ == 3) {
// $scope.min_age_year = 7;
} else if (class_ == 2) {
$scope.min_age_year = 7;
$scope.max_age_year = 8;
} else if (class_ == 3) {
// $scope.min_age_year = 7;
$scope.max_age_year = 9;
} else if (class_ == 4) {
// $scope.min_age_year = 9;
} else if (class_ == 5) {
// $scope.min_age_year = 10;
$scope.max_age_year = 13;
} else if (class_ == 6) {
// $scope.min_age_year = 13;
$scope.min_age_year = 10;
$scope.max_age_year = 15;
} else if (class_ == 5 || class_ == 6) {
$scope.max_age_year = 15;
}
}
@@ -184,19 +184,19 @@ var eventController = [
}
} else if (event.type.match(/^otsv-ecup/)) {
if (class_ == 1) {
$scope.max_age_year = 6;
} else if (class_ == 2 || class_ == 3) {
// $scope.min_age_year = 7;
$scope.max_age_year = 8;
} else if (class_ == 4) {
// $scope.min_age_year = 9;
} else if (class_ == 5) {
// $scope.min_age_year = 10;
$scope.max_age_year = 13;
} else if (class_ == 6) {
// $scope.min_age_year = 13;
$scope.max_age_year = 15;
}
$scope.max_age_year = 6;
} else if (class_ == 2) {
$scope.min_age_year = 7;
$scope.max_age_year = 8;
} else if (class_ == 3) {
// $scope.min_age_year = 7;
$scope.max_age_year = 9;
} else if (class_ == 4) {
$scope.min_age_year = 10;
$scope.max_age_year = 15;
} else if (class_ == 5 || class_ == 6) {
$scope.max_age_year = 15;
}
}
}

0 comments on commit e95fe44

Please sign in to comment.