diff options
Diffstat (limited to 'www/js/MomentCtrl.js')
| -rw-r--r-- | www/js/MomentCtrl.js | 13 |
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 |
