summaryrefslogtreecommitdiff
path: root/client/js/controllers/image/image.js
diff options
context:
space:
mode:
Diffstat (limited to 'client/js/controllers/image/image.js')
-rwxr-xr-xclient/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 28aeb55..d5034d3 100755
--- 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
var callMeAfterGetImage = function () {
@@ -20,4 +20,9 @@ mainApp.controller('imageCtrl', ['$scope', 'Image', 'Loading', 'Identity', funct
callMeAfterGetImage();
}
}
+
+ $scope.edit=function(image){
+ $rootScope.$broadcast("editImageEvent", image, Image.getData().axioms);
+
+ }
}]);