summaryrefslogtreecommitdiff
path: root/client/js/controllers/image/image.js
diff options
context:
space:
mode:
authorLoic GUEGAN <loic@Manzerbredes.home>2016-04-17 20:43:41 +0200
committerLoic GUEGAN <loic@Manzerbredes.home>2016-04-17 20:43:41 +0200
commitae4e0282310b3ab3fe1d92b24b857bf56ceda09a (patch)
treef1d604c3900aa697f10f57d18288c50b26350a40 /client/js/controllers/image/image.js
parenta481b727d9bfa98fdf24a056216d0a3cc78694f9 (diff)
Add functionnality
Diffstat (limited to 'client/js/controllers/image/image.js')
-rw-r--r--client/js/controllers/image/image.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/client/js/controllers/image/image.js b/client/js/controllers/image/image.js
index d0578d7..b74dc76 100644
--- a/client/js/controllers/image/image.js
+++ b/client/js/controllers/image/image.js
@@ -3,7 +3,7 @@
*
* @param {$scope} $scope The $scope service from angular
*/
-mainApp.controller('imageCtrl', ['$scope', 'Image', 'Loading', 'Identity', function ($scope, Image, Loading, Identity)
+mainApp.controller('imageCtrl', ['$scope', 'Image', 'Loading', 'Identity','$rootScope', function ($scope, Image, Loading, Identity, $rootScope)
{
// Update view
@@ -21,4 +21,9 @@ mainApp.controller('imageCtrl', ['$scope', 'Image', 'Loading', 'Identity', funct
callMeAfterGetImage();
}
}
+
+ $scope.edit=function(image){
+ $rootScope.$broadcast("editImageEvent", image);
+
+ }
}]);