From f92daf9cc5eded727589719b46c208cc0f70e341 Mon Sep 17 00:00:00 2001 From: apfelmaennchen Date: Thu, 25 Jun 2009 15:03:16 +0000 Subject: [PATCH] fixed the "1 to 10 of 10" bug in portalsearch for less than 10 results git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@6138 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- htroot/yacy/ui/js/yacyui-portalsearch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htroot/yacy/ui/js/yacyui-portalsearch.js b/htroot/yacy/ui/js/yacyui-portalsearch.js index 36652634b..1acaaec38 100644 --- a/htroot/yacy/ui/js/yacyui-portalsearch.js +++ b/htroot/yacy/ui/js/yacyui-portalsearch.js @@ -247,7 +247,7 @@ function yacysearch(global) { var total = data.channels[0].totalResults.replace(/[,.]/,""); var page = (data.channels[0].startIndex / data.channels[0].itemsPerPage) + 1; var start = startRecord + 1; - var end = startRecord + maximumRecords; + var end = startRecord + data.channels[0].items.length; $("div .ybpane").remove(); if(global) var result = 'global'; else var result = 'local';