admin: Auto change default value for unlockedChallengeDepth
This commit is contained in:
parent
15c85c8f59
commit
b1315a9eeb
2 changed files with 9 additions and 2 deletions
|
@ -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;
|
||||
|
|
Reference in a new issue