Debug
This commit is contained in:
parent
5b5f526aa0
commit
7a587387aa
3 changed files with 43 additions and 9 deletions
|
@ -5,10 +5,20 @@
|
|||
*/
|
||||
mainApp.controller('editImageCtrl', ['$scope', 'Image', 'Loading', 'Identity', 'upload', function ($scope, Image, Loading, Identity, upload)
|
||||
{
|
||||
$scope.$on('editImageEvent', function (eventName, image,axioms) {
|
||||
$scope.$on('editImageEvent', function (eventName, image, axioms) {
|
||||
$scope.image = image;
|
||||
$scope.axioms=axioms;
|
||||
$scope.axioms = axioms;
|
||||
$('#editImageModal').modal('show');
|
||||
console.log(image)
|
||||
});
|
||||
$scope.data = {};
|
||||
$scope.data.visibility = "public";
|
||||
$scope.data.protected = false;
|
||||
|
||||
$scope.updateImage = function (image) {
|
||||
image.visibility = $scope.data.visibility;
|
||||
image.protected = $scope.data.protected;
|
||||
Image.updateImage(image, function(){});
|
||||
|
||||
};
|
||||
}]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue