Correct bug
This commit is contained in:
parent
ae4e028231
commit
5b5f526aa0
4 changed files with 19 additions and 11 deletions
|
@ -5,8 +5,9 @@
|
|||
*/
|
||||
mainApp.controller('editImageCtrl', ['$scope', 'Image', 'Loading', 'Identity', 'upload', function ($scope, Image, Loading, Identity, upload)
|
||||
{
|
||||
$scope.$on('editImageEvent', function (eventName, image) {
|
||||
$scope.$on('editImageEvent', function (eventName, image,axioms) {
|
||||
$scope.image = image;
|
||||
$scope.axioms=axioms;
|
||||
$('#editImageModal').modal('show');
|
||||
console.log(image)
|
||||
});
|
||||
|
|
|
@ -23,7 +23,7 @@ mainApp.controller('imageCtrl', ['$scope', 'Image', 'Loading', 'Identity','$root
|
|||
}
|
||||
|
||||
$scope.edit=function(image){
|
||||
$rootScope.$broadcast("editImageEvent", image);
|
||||
$rootScope.$broadcast("editImageEvent", image, Image.getData().axioms);
|
||||
|
||||
}
|
||||
}]);
|
||||
|
|
|
@ -4,7 +4,9 @@ mainApp.factory('Image', ['$http', 'Identity', function ($http, Identity) {
|
|||
// Data object
|
||||
var data = {};
|
||||
data.images = null; // Images
|
||||
|
||||
data.axioms={};
|
||||
data.axioms.protected=[true,false];
|
||||
data.axioms.visibility=["public", "private"];
|
||||
/**
|
||||
* Parse uploadImage anwser
|
||||
* @param {type} response
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue