admin: Auto change default value for unlockedChallengeDepth

This commit is contained in:
nemunaire 2022-01-21 09:17:46 +01:00
parent 15c85c8f59
commit b1315a9eeb
2 changed files with 9 additions and 2 deletions

View file

@ -507,6 +507,13 @@ angular.module("FICApp")
$scope.configro = ROSettings.get();
$scope.duration = 360;
$scope.exerciceDependChange = function() {
if ($scope.config.enableExerciceDepend)
$scope.config.unlockedChallengeDepth = 0;
else
$scope.config.unlockedChallengeDepth = -1;
};
var needRefreshSyncReportWhenReady = false;
var refreshSyncReport = function() {
needRefreshSyncReportWhenReady = false;