Merge pull request #3249 from FinnStutzenstein/MediafilePdfPageFix

Fixing page controls in mediafiles list view
This commit is contained in:
Emanuel Schütze 2017-05-15 13:41:50 +02:00 committed by GitHub
commit 601e2ea2b5

View File

@ -188,10 +188,11 @@ angular.module('OpenSlidesApp.mediafiles.list', [
};
$scope.mediafileGoToPage = function (mediafile, page) {
if (parseInt(page) > 0) {
page = parseInt(page);
if (page > 0 && page <= mediafile.numPages) {
sendMediafileCommand(
mediafile,
{page: parseInt(page)}
{page: page}
);
}
};