Fixing page controls in mediafiles list view
This commit is contained in:
parent
2833341867
commit
90c8ce5bf0
@ -188,10 +188,11 @@ angular.module('OpenSlidesApp.mediafiles.list', [
|
|||||||
};
|
};
|
||||||
|
|
||||||
$scope.mediafileGoToPage = function (mediafile, page) {
|
$scope.mediafileGoToPage = function (mediafile, page) {
|
||||||
if (parseInt(page) > 0) {
|
page = parseInt(page);
|
||||||
|
if (page > 0 && page <= mediafile.numPages) {
|
||||||
sendMediafileCommand(
|
sendMediafileCommand(
|
||||||
mediafile,
|
mediafile,
|
||||||
{page: parseInt(page)}
|
{page: page}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user