summaryrefslogtreecommitdiff
path: root/www/js/ModalCtrl.js
diff options
context:
space:
mode:
authorPliablePixels <pliablepixels@gmail.com>2015-07-24 15:48:01 -0400
committerPliablePixels <pliablepixels@gmail.com>2015-07-24 15:48:01 -0400
commit83400033a3b7a91ad072a5d306355c9cd5a80d82 (patch)
treeb84d23a607523249554dc97ed26f000ca03d0abd /www/js/ModalCtrl.js
parent89640e9b0212a2525ea132b1d11bb8962f5444dd (diff)
integrated event scrubbing with direct image access - need to clean up code
Diffstat (limited to 'www/js/ModalCtrl.js')
-rw-r--r--www/js/ModalCtrl.js12
1 files changed, 6 insertions, 6 deletions
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;
+};
}]);