summaryrefslogtreecommitdiff
path: root/www/js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js')
-rw-r--r--www/js/EventCtrl.js28
1 files changed, 28 insertions, 0 deletions
diff --git a/www/js/EventCtrl.js b/www/js/EventCtrl.js
index c827f98c..b6c99b76 100644
--- a/www/js/EventCtrl.js
+++ b/www/js/EventCtrl.js
@@ -427,12 +427,40 @@ angular.module('zmApp.controllers')
var img;
+ //console.log ("HERE");
$scope.kFrame = $translate.instant ('kFrame');
$scope.kEvent = $translate.instant ('kEvent');
$scope.ndx = ndx;
$scope.parray = parray;
$scope.imode = imode;
+ // note ndx may be incorrect if we are looking
+ // at unique frames;
+
+ // ZMDataModel.zmDebug("Hello");
+ if ($scope.typeOfFrames == $translate.instant('kShowTimeDiffFrames'))
+ {
+
+ var ic;
+
+ for ( ic = 0; ic < $scope.parray.length; ic++)
+ {
+ if ($scope.parray[ic].frameid == fid)
+ break;
+ }
+
+
+ ZMDataModel.zmDebug ("Readjusting selected frame ID from:"+$scope.ndx+" to actual frame ID of:" + ic);
+ $scope.ndx = ic;
+ }
+ else
+ {
+ ZMDataModel.zmDebug ("No index adjustment necessary as we are using all frames");
+ }
+
+
+
+
// console.log ("Image Mode " + imode);
// console.log ("parray : " + JSON.stringify(parray));
// console.log ("index: " + ndx);