diff options
Diffstat (limited to 'www')
| -rw-r--r-- | www/js/MontageHistoryCtrl.js | 13 | ||||
| -rw-r--r-- | www/templates/montage-history.html | 2 |
2 files changed, 14 insertions, 1 deletions
diff --git a/www/js/MontageHistoryCtrl.js b/www/js/MontageHistoryCtrl.js index 0c8bf2a0..8f0a0fb7 100644 --- a/www/js/MontageHistoryCtrl.js +++ b/www/js/MontageHistoryCtrl.js @@ -777,6 +777,19 @@ angular.module('zmApp.controllers').controller('zmApp.MontageHistoryCtrl', ['$sc //NVR.isBackground()); return NVR.isBackground(); }; + + $scope.skipImage = function (m, dirn) { + + NVR.debug ("skipping image in direction:"+dirn); + var cmd = (dirn == -1)?12:13; + sendCmd(m.Monitor.Id, cmd); + //var CMD_PREV = 12; + //var CMD_NEXT = 13; + + + + + } $scope.toggleControls = function () { $scope.showControls = !$scope.showControls; }; diff --git a/www/templates/montage-history.html b/www/templates/montage-history.html index 6ef06b75..7ef88e98 100644 --- a/www/templates/montage-history.html +++ b/www/templates/montage-history.html @@ -107,7 +107,7 @@ <img class="{{monitor.Monitor.selectStyle}}" image-spinner-src="{{constructStream(monitor)}}" image-spinner-loader="lines" on-tap="!isDragabillyOn?togglePause(monitor.Monitor.Id):toggleSelectItem($index)" - on-swipe-left="toggleControls()" on-swipe-right="toggleControls()" img-spinner-w="{{monitor.Monitor.Width}}" + on-swipe-left="skipImage(monitor,1)" on-swipe-right="skipImage(monitor,-1)" img-spinner-w="{{monitor.Monitor.Width}}" img-spinner-h="{{monitor.Monitor.Height}}" /> |
