Hide sent message when get response for a submission
This commit is contained in:
parent
645f40f0c6
commit
d5d45c0b0c
1 changed files with 3 additions and 2 deletions
|
@ -164,6 +164,7 @@ angular.module("FICApp")
|
|||
|
||||
angular.forEach($scope.flags, function(flag,kid) {
|
||||
flgs[flag.name] = flag.value;
|
||||
flag.value = "";
|
||||
});
|
||||
|
||||
$http({
|
||||
|
@ -177,13 +178,13 @@ angular.module("FICApp")
|
|||
var checkDiff = function() {
|
||||
$http.get("/my.json").success(function(my) {
|
||||
if ($scope.my.exercices[$rootScope.current_exercice].solved_time != my.exercices[$rootScope.current_exercice].solved_time) {
|
||||
$scope.my = my;
|
||||
$rootScope.refresh();
|
||||
} else {
|
||||
$timeout(checkDiff, 750);
|
||||
}
|
||||
});
|
||||
};
|
||||
checkDiff()
|
||||
checkDiff();
|
||||
}).error(function(data, status, header, config) {
|
||||
if (status >= 500) {
|
||||
$scope.my.exercices[$rootScope.current_exercice].submitted = false;
|
||||
|
|
Reference in a new issue