test
This commit is contained in:
parent
c7401eae9f
commit
3b5d1e033a
3 changed files with 9 additions and 5 deletions
|
@ -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();
|
||||
}
|
||||
}]);
|
||||
|
|
|
@ -70,7 +70,7 @@ mainApp.factory('Image', ['$http', 'Identity', function ($http, Identity) {
|
|||
result.then(function (response) {
|
||||
callback();
|
||||
}, function (response) {
|
||||
alert(response)
|
||||
alert(response);
|
||||
});
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue