From f49d9e8591c497fc2767be234a31002c334d7d77 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Thu, 13 Nov 2014 16:45:03 +0100 Subject: [PATCH] Fix the tooltip's max page count in the joystick navigation --- application/views/scripts/joystickPagination.phtml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/views/scripts/joystickPagination.phtml b/application/views/scripts/joystickPagination.phtml index 1808ba7e3..cf6afbd70 100644 --- a/application/views/scripts/joystickPagination.phtml +++ b/application/views/scripts/joystickPagination.phtml @@ -68,7 +68,7 @@ $nextXAxisPage = $currentXAxisPage < $totalXAxisPages ? $currentXAxisPage + 1 : $fromTo, t('Services'), $currentXAxisPage * $xAxisPages->itemCountPerPage + 1, - $nextXAxisPage * $xAxisPages->itemCountPerPage, + $nextXAxisPage === $xAxisPages->last ? $xAxisPages->totalItemCount : $nextXAxisPage * $xAxisPages->itemCountPerPage, $xAxisPages->totalItemCount ); ?>">icon('next_petrol.png'); ?> @@ -86,7 +86,7 @@ $nextXAxisPage = $currentXAxisPage < $totalXAxisPages ? $currentXAxisPage + 1 : $fromTo, t('Hosts'), $currentYAxisPage * $yAxisPages->itemCountPerPage + 1, - $nextYAxisPage * $yAxisPages->itemCountPerPage, + $nextYAxisPage === $yAxisPages->last ? $yAxisPages->totalItemCount : $nextYAxisPage * $yAxisPages->itemCountPerPage, $yAxisPages->totalItemCount ); ?>">icon('down_petrol.png'); ?>