frontend: public interface: keep number of tries between refresh
This commit is contained in:
parent
8790d6d678
commit
8803852d47
|
@ -342,6 +342,10 @@ angular.module("FICApp", ["ngRoute", "ngSanitize"])
|
|||
data.exercices[eid].timeouted = true;
|
||||
if ($scope.my && $scope.my.exercices[eid] && $scope.my.exercices[eid].solved !== undefined)
|
||||
data.exercices[eid].solved = $scope.my.exercices[eid].solved;
|
||||
if ($scope.my && $scope.my.exercices[eid] && $scope.my.exercices[eid].solved_time !== undefined && data.exercices[eid].solved_time === undefined)
|
||||
data.exercices[eid].solved_time = $scope.my.exercices[eid].solved_time;
|
||||
if ($scope.my && $scope.my.exercices[eid] && $scope.my.exercices[eid].tries !== undefined && data.exercices[eid].tries === undefined)
|
||||
data.exercices[eid].tries = $scope.my.exercices[eid].tries;
|
||||
angular.forEach(exercice.flags, function(flag, fid) {
|
||||
if ($scope.my && $scope.my.exercices[eid] && $scope.my.exercices[eid].flags && $scope.my.exercices[eid].flags[fid] && $scope.my.exercices[eid].flags[fid].found !== undefined)
|
||||
data.exercices[eid].flags[fid].found = $scope.my.exercices[eid].flags[fid].found;
|
||||
|
|
Loading…
Reference in New Issue