From 2be52f392f074844e450b828b22a8744e8e8c4ca Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Sat, 2 Feb 2019 09:49:25 -0500 Subject: #775 allow swipe for jpegs too --- www/js/MontageHistoryCtrl.js | 13 +++++++++++++ www/templates/montage-history.html | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) (limited to 'www') 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 @@ -- cgit v1.2.3