- 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,9 +234,8 @@ function yacysearch(global) {
function(json, status) { function(json, status) {
if (json[0]) data = json[0]; if (json[0]) data = json[0];
else data = json; else data = json;
if(ycurr != data.channels[0].searchTerms) var searchTerms = data.channels[0].searchTerms.replace(/\+/," ");
return false; if(ycurr != searchTerms)
if(data.channels[0].searchTerms != ycurr)
return false; return false;
$('#ypopup').empty(); $('#ypopup').empty();
var total = data.channels[0].totalResults.replace(/[,.]/,""); var total = data.channels[0].totalResults.replace(/[,.]/,"");

Loading…
Cancel
Save