This commit is contained in:
Loic GUEGAN 2016-05-07 10:52:22 +02:00
parent c7401eae9f
commit 3b5d1e033a
3 changed files with 9 additions and 5 deletions
client/js
controllers/image
services

View file

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

View file

@ -70,7 +70,7 @@ mainApp.factory('Image', ['$http', 'Identity', function ($http, Identity) {
result.then(function (response) {
callback();
}, function (response) {
alert(response)
alert(response);
});