diff --git a/openslides/mediafiles/static/js/mediafiles/list.js b/openslides/mediafiles/static/js/mediafiles/list.js index 006b99ed3..57233eef7 100644 --- a/openslides/mediafiles/static/js/mediafiles/list.js +++ b/openslides/mediafiles/static/js/mediafiles/list.js @@ -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} ); } };