From 90c8ce5bf096ebcf6e543d9574a4a9e562b43e53 Mon Sep 17 00:00:00 2001 From: FinnStutzenstein Date: Wed, 10 May 2017 09:26:31 +0200 Subject: [PATCH] Fixing page controls in mediafiles list view --- openslides/mediafiles/static/js/mediafiles/list.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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} ); } };