2015-10-22 00:01:51 +02:00
|
|
|
(function () {
|
|
|
|
|
|
|
|
'use strict';
|
|
|
|
|
2016-01-27 09:09:49 +01:00
|
|
|
angular.module('OpenSlidesApp.mediafiles.projector', ['OpenSlidesApp.mediafiles'])
|
2015-10-22 00:01:51 +02:00
|
|
|
|
2016-01-27 09:09:49 +01:00
|
|
|
.config([
|
|
|
|
'slidesProvider',
|
|
|
|
function(slidesProvider) {
|
|
|
|
slidesProvider.registerSlide('mediafiles/mediafile', {
|
|
|
|
template: 'static/templates/mediafiles/slide_mediafile.html'
|
|
|
|
});
|
|
|
|
}
|
|
|
|
])
|
|
|
|
|
|
|
|
.controller('SlideMediafileCtrl', [
|
|
|
|
'$scope',
|
|
|
|
'Mediafile',
|
|
|
|
function($scope, Mediafile) {
|
|
|
|
// load mediafile object
|
|
|
|
var mediafile = Mediafile.find($scope.element.id);
|
|
|
|
mediafile.then(function(mediafile) {
|
|
|
|
$scope.pdfName = mediafile.title;
|
|
|
|
$scope.pdfUrl = mediafile.mediafileUrl;
|
2016-02-16 00:56:56 +01:00
|
|
|
});
|
2016-01-27 09:09:49 +01:00
|
|
|
}
|
|
|
|
]);
|
|
|
|
|
|
|
|
})();
|