admin: Can change capture_regexp along with key
This commit is contained in:
parent
0c53372618
commit
a7d521fbdd
2 changed files with 19 additions and 10 deletions
|
@ -2317,9 +2317,9 @@ angular.module("FICApp")
|
|||
}
|
||||
$scope.saveFlag = function () {
|
||||
if (this.flag.id) {
|
||||
this.flag.$update();
|
||||
this.flag.$update().then(function() {}, function(error) { $scope.addToast('danger', 'Impossible de mettre à jour le flag :', error.data.errmsg); });
|
||||
} else {
|
||||
this.flag.$save({ exerciceId: $routeParams.exerciceId });
|
||||
this.flag.$save({ exerciceId: $routeParams.exerciceId }).then(function() {}, function(error) { $scope.addToast('danger', 'Impossible de créer le flag :', error.data.errmsg); });
|
||||
}
|
||||
$rootScope.staticFilesNeedUpdate++;
|
||||
}
|
||||
|
|
Reference in a new issue