HTML: Fix the viewed search results when change the number of viewed dives.

When a search results are shown and the number of showed dives is
changed, all the dives are shown. We Just need to preview the first
number to show dives from the search results instead of all the dives.

Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com>
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Gehad elrobey 2014-07-21 07:02:31 +02:00 committed by Dirk Hohndel
parent 0122b1a6d7
commit 47bdcbe261

View file

@ -160,7 +160,7 @@ function setNumberOfDives(e)
var value = e.options[e.selectedIndex].value;
sizeofpage = parseInt(value, 10);
var end = start + sizeofpage - 1;
view_in_range(start, end);
viewInPage();
}
function toggleExpantion(ul)