From 3c29380ef33accd99c6ed2847539a3856619a190 Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Mon, 30 Apr 2018 11:08:32 -0400 Subject: #618 basic auth token --- www/js/MomentCtrl.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'www/js/MomentCtrl.js') 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 -- cgit v1.2.3