small fix for yacyui-portalsearch

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5876 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
apfelmaennchen 16 years ago
parent b4539a61dd
commit 557c2a32a3

@ -109,11 +109,7 @@ function yacysearch(global) {
if (json[0]) data = json[0];
else data = json;
$('#ypopup').empty();
var total = data.channels[0].totalResults.replace(/[,.]/,"");
if(global && (total == 0)) {
yacysearch(global);
return false;
}
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;

Loading…
Cancel
Save