diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2019-05-10 11:37:32 -0400 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2019-05-10 11:37:32 -0400 |
| commit | da48c504975617bceb9191a06229d5c730f335f8 (patch) | |
| tree | b68077efcc1010c73f6fe871b15ee6bcad38b058 /www/js/EventCtrl.js | |
| parent | be54fb1534f20ff0cc622ff2e7f8734a5fc22752 (diff) | |
general cleanup, also object notes tweaks, removed authSession undefined foo
Diffstat (limited to 'www/js/EventCtrl.js')
| -rw-r--r-- | www/js/EventCtrl.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/www/js/EventCtrl.js b/www/js/EventCtrl.js index 77a50a64..e06309aa 100644 --- a/www/js/EventCtrl.js +++ b/www/js/EventCtrl.js @@ -974,10 +974,10 @@ angular.module('zmApp.controllers') //$rootScope.zmPopup = $ionicPopup.alert({title: kFrame+':'+fid+'/'+kEvent+':'+e,template:img, cssClass:'popup80'}); - if ($rootScope.authSession != 'undefined') { + $scope.imgsrc += $rootScope.authSession; $scope.fallbackImgSrc += $rootScope.authSession; - } + $scope.imgsrc += NVR.insertBasicAuthToken(); @@ -2316,7 +2316,7 @@ angular.module('zmApp.controllers') videoURL = event.Event.recordingURL + "/index.php?view=view_video&eid=" + event.Event.Id; - if ($rootScope.authSession != 'undefined') videoURL += $rootScope.authSession; + videoURL += $rootScope.authSession; videoURL += NVR.insertBasicAuthToken(); @@ -2965,7 +2965,7 @@ angular.module('zmApp.controllers') NVR.getSnapshotFrame()+"&eid="+event.Event.Id + "&width=" + event.Event.thumbWidth * 2 + "&height=" + event.Event.thumbHeight * 2; - if ($rootScope.authSession != 'undefined') stream += $rootScope.authSession; + stream += $rootScope.authSession; stream += NVR.insertBasicAuthToken(); return stream; @@ -2979,7 +2979,7 @@ angular.module('zmApp.controllers') stream = event.Event.recordingURL + "/index.php?view=image" + "&fid=" + slide.id + $scope.outlineMotionParam; - if ($rootScope.authSession != 'undefined') stream += $rootScope.authSession; + stream += $rootScope.authSession; stream += NVR.insertBasicAuthToken(); @@ -2994,7 +2994,7 @@ angular.module('zmApp.controllers') stream = event.Event.recordingURL + "/index.php?view=image&fid=" + alarm.id; if (motion) stream += $scope.outlineMotionParam; - if ($rootScope.authSession != 'undefined') stream += $rootScope.authSession; + stream += $rootScope.authSession; stream += NVR.insertBasicAuthToken(); // console.log ("alarm:"+stream); |
