diff options
| author | Arjun Roychowdhury <pliablepixels@gmail.com> | 2015-11-05 10:59:06 -0500 |
|---|---|---|
| committer | Arjun Roychowdhury <pliablepixels@gmail.com> | 2015-11-05 10:59:06 -0500 |
| commit | 316924fed856d6d3be675adc3275d13b78e9330c (patch) | |
| tree | d5f1e9a67ceb5fdd2033704f6bae32eb3c62e137 /www/js/EventCtrl.js | |
| parent | bc032a224a12709132dfd265302528c5df1a7af3 (diff) | |
swipe support added #48 #49
Diffstat (limited to 'www/js/EventCtrl.js')
| -rw-r--r-- | www/js/EventCtrl.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/www/js/EventCtrl.js b/www/js/EventCtrl.js index 0f16ed31..a4da30dc 100644 --- a/www/js/EventCtrl.js +++ b/www/js/EventCtrl.js @@ -1247,6 +1247,14 @@ angular.module('zmApp.controllers') //Navigate to next/prev event in full screen mode //-------------------------------------------------------- + $scope.onSwipe = function(eid,dirn) + { + var ld = ZMDataModel.getLogin(); + if (!ld.canSwipeMonitors) return; + jumpToEvent(eid,dirn); + + }; + $scope.jumpToEvent = function (eid, dirn) { jumpToEvent(eid, dirn); |
