From e95fe44224ae064b5f94fe64ad06efd35c086ff1 Mon Sep 17 00:00:00 2001 From: Andreas Gruenbacher Date: Sat, 3 Feb 2018 21:47:23 +0100 Subject: [PATCH] =?UTF-8?q?Update=20age=20ranges=20for=20=C3=96TSV=20e-Kid?= =?UTF-8?q?s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 2 +- htdocs/admin/riders/controller.js | 16 ++++++++-------- htdocs/register/event/controller.js | 26 +++++++++++++------------- 3 files changed, 22 insertions(+), 22 deletions(-) diff --git a/Makefile b/Makefile index 5c09a189..34f209f5 100644 --- a/Makefile +++ b/Makefile @@ -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 = \ diff --git a/htdocs/admin/riders/controller.js b/htdocs/admin/riders/controller.js index c47cf523..920a9578 100644 --- a/htdocs/admin/riders/controller.js +++ b/htdocs/admin/riders/controller.js @@ -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; } } diff --git a/htdocs/register/event/controller.js b/htdocs/register/event/controller.js index e9891e21..8858ece9 100644 --- a/htdocs/register/event/controller.js +++ b/htdocs/register/event/controller.js @@ -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; + } } }