summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2019-06-06 13:25:55 -0400
committerPliable Pixels <pliablepixels@gmail.com>2019-06-06 13:25:55 -0400
commit45ca6426df7f604487485888b4de7996cfb01c4d (patch)
treeda4ce20daa10a79d0286f92bdc410dbdc1d3544b
parentba05e109697db1e3446b3312a62da9c5f9548e4d (diff)
#822 more missed tokens
-rw-r--r--config.xml2
-rw-r--r--package.json2
-rw-r--r--www/js/EventModalCtrl.js36
-rw-r--r--www/js/NVR.js2
-rw-r--r--www/js/TimelineModalCtrl.js2
5 files changed, 14 insertions, 30 deletions
diff --git a/config.xml b/config.xml
index dde2c48f..5a4ce3ad 100644
--- a/config.xml
+++ b/config.xml
@@ -1,5 +1,5 @@
<?xml version='1.0' encoding='utf-8'?>
-<widget android-packageName="com.pliablepixels.zmninja_pro" id="com.pliablepixels.zmninja_pro" ios-CFBundleIdentifier="com.pliablepixels.zmninja-pro" version="1.3.060" xmlns="http://www.w3.org/ns/widgets" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:cdv="http://cordova.apache.org/ns/1.0">
+<widget android-packageName="com.pliablepixels.zmninja_pro" id="com.pliablepixels.zmninja_pro" ios-CFBundleIdentifier="com.pliablepixels.zmninja-pro" version="1.3.061" xmlns="http://www.w3.org/ns/widgets" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>zmNinja</name>
<description>
High performance ZoneMinder client
diff --git a/package.json b/package.json
index d34405b2..67e95236 100644
--- a/package.json
+++ b/package.json
@@ -1,7 +1,7 @@
{
"name": "zmninjapro",
"description": "Home security mobile app for ZoneMinder",
- "version":"1.3.060",
+ "version":"1.3.061",
"displayName": "zmNinja",
"author": "Pliable Pixels",
"license": "custom see LICENSE.md",
diff --git a/www/js/EventModalCtrl.js b/www/js/EventModalCtrl.js
index be97d773..e2f122f9 100644
--- a/www/js/EventModalCtrl.js
+++ b/www/js/EventModalCtrl.js
@@ -724,13 +724,10 @@ angular.module('zmApp.controllers').controller('EventModalCtrl', ['$scope', '$ro
url = $scope.playbackURL + '/index.php?view=image&rand=' + $rootScope.rand +
"&eid=" + $scope.eventId +
- "&fid=" + $scope.slides[$scope.mycarousel.index - 1].id;
+ "&fid=" + $scope.slides[$scope.mycarousel.index - 1].id + $rootScope.authSession;
- if ($rootScope.authSession != 'undefined') {
- url += $rootScope.authSession;
-
- }
+
if ($rootScope.basicAuthToken) {
url += "&basicauth=" + $rootScope.basicAuthToken;
@@ -757,12 +754,9 @@ angular.module('zmApp.controllers').controller('EventModalCtrl', ['$scope', '$ro
if ($scope.slideIndex > 0) $scope.slideIndex--;
- $scope.selectEventUrl = $scope.playbackURL + '/index.php?view=image&rand=' + $rootScope.rand + "&eid=" + $scope.eventId + "&fid=" + $scope.slides[$scope.slideIndex].id;
+ $scope.selectEventUrl = $scope.playbackURL + '/index.php?view=image&rand=' + $rootScope.rand + "&eid=" + $scope.eventId + "&fid=" + $scope.slides[$scope.slideIndex].id+ $rootScope.authSession;
- if ($rootScope.authSession != 'undefined') {
- $scope.selectEventUrl += $rootScope.authSession;
-
- }
+
if ($rootScope.basicAuthToken) {
$scope.selectEventUrl += "&basicauth=" + $rootScope.basicAuthToken;
@@ -783,12 +777,9 @@ angular.module('zmApp.controllers').controller('EventModalCtrl', ['$scope', '$ro
if ($scope.slideIndex < $scope.slideLastIndex) $scope.slideIndex++;
- $scope.selectEventUrl = $scope.playbackURL + '/index.php?view=image&rand=' + $rootScope.rand + "&eid=" + $scope.eventId + "&fid=" + $scope.slides[$scope.slideIndex].id;
+ $scope.selectEventUrl = $scope.playbackURL + '/index.php?view=image&rand=' + $rootScope.rand + "&eid=" + $scope.eventId + "&fid=" + $scope.slides[$scope.slideIndex].id+ $rootScope.authSession;
- if ($rootScope.authSession != 'undefined') {
- $scope.selectEventUrl += $rootScope.authSession;
-
- }
+
if ($rootScope.basicAuthToken) {
$scope.selectEventUrl += "&basicauth=" + $rootScope.basicAuthToken;
@@ -810,12 +801,8 @@ angular.module('zmApp.controllers').controller('EventModalCtrl', ['$scope', '$ro
$scope.slideIndex = tempVar;
- $scope.selectEventUrl = $scope.playbackURL + '/index.php?view=image&rand=' + $rootScope.rand + "&eid=" + $scope.eventId + "&fid=" + $scope.slides[$scope.slideIndex].id;
-
- if ($rootScope.authSession != 'undefined') {
- $scope.selectEventUrl += $rootScope.authSession;
-
- }
+ $scope.selectEventUrl = $scope.playbackURL + '/index.php?view=image&rand=' + $rootScope.rand + "&eid=" + $scope.eventId + "&fid=" + $scope.slides[$scope.slideIndex].id+ $rootScope.authSession;
+
if ($rootScope.basicAuthToken) {
$scope.selectEventUrl += "&basicauth=" + $rootScope.basicAuthToken;
@@ -837,12 +824,9 @@ angular.module('zmApp.controllers').controller('EventModalCtrl', ['$scope', '$ro
if ($scope.slideIndex < $scope.slideLastIndex) $scope.slideIndex++;
- $scope.selectEventUrl = $scope.playbackURL + '/index.php?view=image&rand=' + $rootScope.rand + "&eid=" + $scope.eventId + "&fid=" + $scope.slides[$scope.slideIndex].id;
+ $scope.selectEventUrl = $scope.playbackURL + '/index.php?view=image&rand=' + $rootScope.rand + "&eid=" + $scope.eventId + "&fid=" + $scope.slides[$scope.slideIndex].id+ $rootScope.authSession;
- if ($rootScope.authSession != 'undefined') {
- $scope.selectEventUrl += $rootScope.authSession;
-
- }
+
if ($rootScope.basicAuthToken) {
$scope.selectEventUrl += "&basicauth=" + $rootScope.basicAuthToken;
diff --git a/www/js/NVR.js b/www/js/NVR.js
index 80f50a66..86b1224f 100644
--- a/www/js/NVR.js
+++ b/www/js/NVR.js
@@ -20,7 +20,7 @@ angular.module('zmApp.controllers')
DO NOT TOUCH zmAppVersion
It is changed by sync_version.sh
*/
- var zmAppVersion = "1.3.060";
+ var zmAppVersion = "1.3.061";
var isBackground = false;
var justResumed = false;
var timeSinceResumed = -1;
diff --git a/www/js/TimelineModalCtrl.js b/www/js/TimelineModalCtrl.js
index 59210aa5..84952c56 100644
--- a/www/js/TimelineModalCtrl.js
+++ b/www/js/TimelineModalCtrl.js
@@ -122,7 +122,7 @@ angular.module('zmApp.controllers').controller('TimelineModalCtrl', ['$scope', '
var img;
//console.log("Image Mode " + imode);
- img = "<img width='100%' ng-src='" + p + "/index.php?view=image&fid=" + id + "'>";
+ img = "<img width='100%' ng-src='" + p + "/index.php?view=image&fid=" + id + $rootScope.authSession + "'>";
// console.log ("IS MULTISERVER SO IMAGE IS " + img);
$rootScope.zmPopup = $ionicPopup.alert({