Correct bug

This commit is contained in:
Loic GUEGAN 2016-04-27 15:52:58 +02:00
parent a845b20ee9
commit ef3054bb8f
2 changed files with 3 additions and 3 deletions

View file

@ -15,7 +15,7 @@ mainApp.controller('editImageCtrl', ['$scope', 'Image', 'Loading', 'Identity', '
$scope.data.visibility = "public";
$scope.data.protected = false;
$scope.updateImage = function (image) {
$scope.applyEdition = function (image) {
image.visibility = $scope.data.visibility;
image.protected = $scope.data.protected;
Image.updateImage(image, function(){});