summaryrefslogtreecommitdiff
path: root/www/js/EventCtrl.js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js/EventCtrl.js')
-rw-r--r--www/js/EventCtrl.js19
1 files changed, 18 insertions, 1 deletions
diff --git a/www/js/EventCtrl.js b/www/js/EventCtrl.js
index 9df6ac7b..7a7ce39b 100644
--- a/www/js/EventCtrl.js
+++ b/www/js/EventCtrl.js
@@ -140,6 +140,14 @@ angular.module('zmApp.controllers')
min + "/" +
sec + "/";
+ myevents[i].Event.relativePath =
+ myevents[i].Event.MonitorId + "/" +
+ yy + "/" +
+ mm + "/" +
+ dd + "/" +
+ hh + "/" +
+ min + "/" +
+ sec + "/";
}
@@ -687,7 +695,7 @@ angular.module('zmApp.controllers')
//earlier won't work
//--------------------------------------------------------
- $scope.openModal = function (eid, ename, edur, eframes, basepath) {
+ $scope.openModal = function (eid, ename, edur, eframes, basepath, relativepath) {
console.log("Open Modal with Base path " + basepath);
$scope.eventName = ename;
$scope.eventId = eid;
@@ -695,6 +703,7 @@ angular.module('zmApp.controllers')
$scope.eventDur = Math.round(edur);
$scope.loginData = ZMDataModel.getLogin();
$scope.eventBasePath = basepath;
+ $scope.relativePath = relativepath;
$rootScope.rand = Math.floor(Math.random() * (999999 - 111111 + 1)) + 111111;
$scope.slider_modal_options = {
@@ -930,6 +939,14 @@ angular.module('zmApp.controllers')
hh + "/" +
min + "/" +
sec + "/";
+
+ myevents[i].Event.relativePath = myevents[i].Event.MonitorId + "/" +
+ yy + "/" +
+ mm + "/" +
+ dd + "/" +
+ hh + "/" +
+ min + "/" +
+ sec + "/";
myevents[i].Event.height = zm.eventsListDetailsHeight;
}