Merge pull request #2707 from emanuelschuetze/fix-js-error
Fix JS error after project pdf file.
This commit is contained in:
commit
4604d687f1
@ -23,6 +23,7 @@ angular.module('OpenSlidesApp.mediafiles.projector', ['OpenSlidesApp.mediafiles'
|
||||
|
||||
// Allow the elements to render properly
|
||||
setTimeout(function() {
|
||||
if ($scope.mediafile) {
|
||||
if ($scope.mediafile.is_pdf) {
|
||||
$scope.pdfName = mediafile.title;
|
||||
$scope.pdfUrl = mediafile.mediafileUrl;
|
||||
@ -34,6 +35,7 @@ angular.module('OpenSlidesApp.mediafiles.projector', ['OpenSlidesApp.mediafiles'
|
||||
player.pause();
|
||||
}
|
||||
}
|
||||
}
|
||||
}, 0);
|
||||
}
|
||||
]);
|
||||
|
Loading…
Reference in New Issue
Block a user