summaryrefslogtreecommitdiff
path: root/www/js
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2018-04-30 11:08:32 -0400
committerPliable Pixels <pliablepixels@gmail.com>2018-04-30 11:08:32 -0400
commit3c29380ef33accd99c6ed2847539a3856619a190 (patch)
treeebf7267f4a2a21469d7e88759d4414a2d4aea1fe /www/js
parentf286615882223adf7bc309c75a142286b5044cc1 (diff)
#618 basic auth token
Diffstat (limited to 'www/js')
-rw-r--r--www/js/MomentCtrl.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/www/js/MomentCtrl.js b/www/js/MomentCtrl.js
index 4abe5c9f..06658e0e 100644
--- a/www/js/MomentCtrl.js
+++ b/www/js/MomentCtrl.js
@@ -257,7 +257,20 @@ angular.module('zmApp.controllers').controller('zmApp.MomentCtrl', ['$scope', '$
};
+ $scope.constructFrame = function(moment) {
+ var stream = "";
+ stream = moment.Event.baseURL+"/index.php?view=image" +
+ "&fid="+moment.Event.MaxScoreFrameId+
+ "&width="+moment.Event.thumbWidth*2 +
+ "&height="+moment.Event.thumbHeight*2;
+
+ if ($rootScope.authSession != 'undefined') stream +=$rootScope.authSession;
+ if ($rootScope.basicAuthToken) stream = stream+"&basicauth="+$rootScope.basicAuthToken;
+ return stream;
+
+ };
+
//----------------------------------------------------------------
// construct popover only when needed
// so that we can use one-time binding for the compare function