- yacyui-portalsearch: fix for multiple search terms

- http://forum.yacy-websuche.de/viewtopic.php?f=6&t=2209#p16015

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@6112 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
apfelmaennchen 16 years ago
parent b07e518bcc
commit 7fcffdcb3c

@ -234,10 +234,9 @@ function yacysearch(global) {
function(json, status) {
if (json[0]) data = json[0];
else data = json;
if(ycurr != data.channels[0].searchTerms)
return false;
if(data.channels[0].searchTerms != ycurr)
return false;
var searchTerms = data.channels[0].searchTerms.replace(/\+/," ");
if(ycurr != searchTerms)
return false;
$('#ypopup').empty();
var total = data.channels[0].totalResults.replace(/[,.]/,"");
var page = (data.channels[0].startIndex / data.channels[0].itemsPerPage) + 1;

Loading…
Cancel
Save