Fixing page controls in mediafiles list view

This commit is contained in:
FinnStutzenstein 2017-05-10 09:26:31 +02:00
parent 2833341867
commit 90c8ce5bf0

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}
);
}
};