Add status to image
This commit is contained in:
parent
43e76785f0
commit
664cddd4fa
6 changed files with 279 additions and 236 deletions
|
@ -3,7 +3,7 @@
|
|||
*
|
||||
* @param {$scope} $scope The $scope service from angular
|
||||
*/
|
||||
mainApp.controller('imageCtrl', ['$scope', 'Image', 'Loading', 'Identity','$rootScope', function ($scope, Image, Loading, Identity, $rootScope)
|
||||
mainApp.controller('imageCtrl', ['$scope', 'Image', 'Loading', 'Identity', '$rootScope', function ($scope, Image, Loading, Identity, $rootScope)
|
||||
{
|
||||
|
||||
// Update view
|
||||
|
@ -21,9 +21,14 @@ mainApp.controller('imageCtrl', ['$scope', 'Image', 'Loading', 'Identity','$root
|
|||
callMeAfterGetImage();
|
||||
}
|
||||
}
|
||||
|
||||
$scope.edit=function(image){
|
||||
|
||||
$scope.edit = function (image) {
|
||||
$rootScope.$broadcast("editImageEvent", image, Image.getData().axioms);
|
||||
|
||||
|
||||
}
|
||||
|
||||
$scope.showUploadImageModal = function () {
|
||||
$rootScope.$broadcast("showUploadImageModalEvent");
|
||||
|
||||
};
|
||||
}]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue