From 47bdcbe26172f52442e3a66242f621529a1e8fb5 Mon Sep 17 00:00:00 2001 From: Gehad elrobey Date: Mon, 21 Jul 2014 07:02:31 +0200 Subject: 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 Signed-off-by: Miika Turkia Signed-off-by: Dirk Hohndel --- theme/list_lib.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'theme/list_lib.js') diff --git a/theme/list_lib.js b/theme/list_lib.js index 0789714e1..c11c3495f 100644 --- a/theme/list_lib.js +++ b/theme/list_lib.js @@ -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) -- cgit v1.2.3-70-g09d2