aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Gehad elrobey <gehadelrobey@gmail.com>2014-07-21 07:02:31 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-07-25 07:14:45 -0700
commit47bdcbe26172f52442e3a66242f621529a1e8fb5 (patch)
tree9e0ef7e5a8a96845e3d8d6a14b59fcc90b8872fa
parent0122b1a6d77475b5943933af304e8109a515ad7a (diff)
downloadsubsurface-47bdcbe26172f52442e3a66242f621529a1e8fb5.tar.gz
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>
-rw-r--r--theme/list_lib.js2
1 files changed, 1 insertions, 1 deletions
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)