Better behaviour on small screen

This commit is contained in:
Laurent Destailleur 2016-10-27 01:47:03 +02:00
parent 0847dba26d
commit fb0f5e3230

View File

@ -3183,7 +3183,7 @@ function print_barre_liste($titre, $page, $file, $options='', $sortfield='', $so
{
if ($totalnboflines) // If we know total nb of lines
{
$maxnbofpage=(empty($conf->dol_optimize_smallscreen) ? 4 : 2); // page nb before and after selected page + ... + first or last
$maxnbofpage=(empty($conf->dol_optimize_smallscreen) ? 4 : 1); // page nb before and after selected page + ... + first or last
if ($limit > 0) $nbpages=ceil($totalnboflines/$limit);
else $nbpages=1;