From 83400033a3b7a91ad072a5d306355c9cd5a80d82 Mon Sep 17 00:00:00 2001 From: PliablePixels Date: Fri, 24 Jul 2015 15:48:01 -0400 Subject: integrated event scrubbing with direct image access - need to clean up code --- www/js/ModalCtrl.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'www/js/ModalCtrl.js') diff --git a/www/js/ModalCtrl.js b/www/js/ModalCtrl.js index 01b8e27c..f0bb9f6c 100644 --- a/www/js/ModalCtrl.js +++ b/www/js/ModalCtrl.js @@ -18,6 +18,8 @@ angular.module('zmApp.controllers').controller('ModalCtrl', ['$scope', '$rootSco //var imageStyle=1; //$scope.imageAspect = "max-width: 100%;max-height: 100%;"; + $scope.imageFit=false; + $scope.radialMenuOptions = { content: '', @@ -224,11 +226,6 @@ angular.module('zmApp.controllers').controller('ModalCtrl', ['$scope', '$rootSco }; - $scope.saveImageToPhone2=function(mid) - { - console.log ("TEST"); - }; - $scope.onSwipeLeft = function(m,d) { console.log ("SWIPED LEFT"); @@ -332,7 +329,10 @@ angular.module('zmApp.controllers').controller('ModalCtrl', ['$scope', '$rootSco } }; - + $scope.scaleImage = function() { + console.log ("Switching image style"); + $scope.imageFit = !$scope.imageFit; +}; }]); -- cgit v1.2.3