summaryrefslogtreecommitdiff
path: root/www/js/EventModalCtrl.js
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 /www/js/EventModalCtrl.js
parentba05e109697db1e3446b3312a62da9c5f9548e4d (diff)
#822 more missed tokens
Diffstat (limited to 'www/js/EventModalCtrl.js')
-rw-r--r--www/js/EventModalCtrl.js36
1 files changed, 10 insertions, 26 deletions
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;