summaryrefslogtreecommitdiff
path: root/www/js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js')
-rwxr-xr-xwww/js/DataModel.js2
-rw-r--r--www/js/EventModalCtrl.js6
2 files changed, 4 insertions, 4 deletions
diff --git a/www/js/DataModel.js b/www/js/DataModel.js
index 4ac38097..e062945d 100755
--- a/www/js/DataModel.js
+++ b/www/js/DataModel.js
@@ -1753,7 +1753,7 @@ angular.module('zmApp.controllers')
if ($rootScope.authSession == 'undefined') {
log ("Now that we have monitors, lets get AuthKey...");
- getAuthKey(monitors[0].Monitor.Id, (Math.floor((Math.random() * 999999) + 1)).toString())
+ getAuthKey(monitors[0].Monitor.Id, (Math.floor((Math.random() * 999999) + 1)).toString());
}
monitors.sort(function (a, b) {
return parseInt(a.Monitor.Sequence) - parseInt(b.Monitor.Sequence);
diff --git a/www/js/EventModalCtrl.js b/www/js/EventModalCtrl.js
index 1b95c5f3..bdcf3253 100644
--- a/www/js/EventModalCtrl.js
+++ b/www/js/EventModalCtrl.js
@@ -7,7 +7,7 @@ angular.module('zmApp.controllers').controller('EventModalCtrl', ['$scope', '$ro
{
- const streamState = {
+ var streamState = {
SNAPSHOT:1,
ACTIVE:2,
STOPPED:3
@@ -931,7 +931,7 @@ angular.module('zmApp.controllers').controller('EventModalCtrl', ['$scope', '$ro
(maxAlarmFid? "&fid="+maxAlarmFid: "&eid="+$scope.eventId+"&fid=1") +
"&scale="+$scope.singleImageQuality +
- $rootScope.authSession
+ $rootScope.authSession ;
}
else if (currentStreamState == streamState.ACTIVE) {
stream = $scope.loginData.streamingurl +
@@ -941,7 +941,7 @@ angular.module('zmApp.controllers').controller('EventModalCtrl', ['$scope', '$ro
"&rate=100" +
"&connkey="+$scope.connKey +
"&scale="+$scope.singleImageQuality +
- $rootScope.authSession
+ $rootScope.authSession ;
}
// console.log ("STREAM="+stream);