fix for multi-word search (makes a replace-all)

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

@ -234,7 +234,7 @@ 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;
var searchTerms = data.channels[0].searchTerms.replace(/\+/," "); var searchTerms = data.channels[0].searchTerms.replace(/\+/g," ");
if(ycurr != searchTerms) if(ycurr != searchTerms)
return false; return false;
$('#ypopup').empty(); $('#ypopup').empty();

Loading…
Cancel
Save