improve overall exercices interfaces
This commit is contained in:
parent
11d0fe8d1f
commit
beba0a615f
6 changed files with 69 additions and 76 deletions
|
|
@ -767,7 +767,7 @@ angular.module("FICApp")
|
|||
if (response.data)
|
||||
$rootScope.newBox('danger', response.data);
|
||||
else
|
||||
$rootScope.newBox('success', "Synchronisation de la liste de drapeaux terminée avec succès.");
|
||||
$rootScope.newBox('success', "Synchronisation de la liste de fichiers terminée avec succès.");
|
||||
}, function(response) {
|
||||
$scope.inSync = false;
|
||||
$rootScope.newBox('danger', 'An error occurs when synchronizing flags list:', response.data);
|
||||
|
|
@ -784,6 +784,8 @@ angular.module("FICApp")
|
|||
$scope.deleteHint = function() {
|
||||
this.hint.$delete(function() {
|
||||
$scope.hints.splice($scope.hints.indexOf(this.hint), 1);
|
||||
}, function(response) {
|
||||
$rootScope.newBox('danger', 'An error occurs when trying to delete hint:', response.data);
|
||||
});
|
||||
}
|
||||
$scope.saveHint = function() {
|
||||
|
|
@ -822,6 +824,8 @@ angular.module("FICApp")
|
|||
$scope.deleteKey = function() {
|
||||
this.key.$delete(function() {
|
||||
$scope.keys.splice($scope.keys.indexOf(this.key), 1);
|
||||
}, function(response) {
|
||||
$rootScope.newBox('danger', 'An error occurs when trying to delete flag:', response.data);
|
||||
});
|
||||
}
|
||||
$scope.saveKey = function() {
|
||||
|
|
|
|||
Reference in a new issue