summaryrefslogtreecommitdiff
path: root/www/js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js')
-rw-r--r--www/js/MontageCtrl.js17
1 files changed, 16 insertions, 1 deletions
diff --git a/www/js/MontageCtrl.js b/www/js/MontageCtrl.js
index 4b9ed5be..281ca84d 100644
--- a/www/js/MontageCtrl.js
+++ b/www/js/MontageCtrl.js
@@ -17,6 +17,7 @@ angular.module('zmApp.controllers').controller('zmApp.MontageCtrl', ['$scope', '
document.addEventListener("pause", onPause, false);
document.addEventListener("resume", onResume, false);
+ $scope.showSizeButtons = false;
$ionicPopover.fromTemplateUrl('templates/help/montage-help.html', {
scope: $scope,
}).then(function(popover) {
@@ -294,7 +295,21 @@ angular.module('zmApp.controllers').controller('zmApp.MontageCtrl', ['$scope', '
]
});
};
-
+
+ $scope.onSwipeLeft = function ($index)
+ {
+ $scope.showSizeButtons = true;
+ };
+
+ $scope.onSwipeRight= function ($index)
+ {
+ $timeout( function()
+ {
+ $scope.showSizeButtons=false;
+ },1000);
+
+ };
+
//---------------------------------------------------------------------
// This marks a monitor as hidden in montage view
//---------------------------------------------------------------------