From dfc0ac1958fc2c6e3b84ee9c47d924b3b6daa1dc Mon Sep 17 00:00:00 2001 From: orbiter Date: Wed, 13 Sep 2006 12:02:02 +0000 Subject: [PATCH] syntax error fixes git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@2565 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- htroot/js/yacysearch.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/htroot/js/yacysearch.js b/htroot/js/yacysearch.js index 430ebe321..9f717702b 100644 --- a/htroot/js/yacysearch.js +++ b/htroot/js/yacysearch.js @@ -46,14 +46,14 @@ function handleState(req) { var tmpNode=null; var tmpNode2=null; while(pos >= 0 && pos2 > pos){ - tmpNode = document.createTextNode(snippetText.substring(0, pos); //other text + tmpNode = document.createTextNode(snippetText.substring(0, pos)); //other text if(tmpNode != ""){ span.appendChild(tmpNode); } //add the bold text tmpNode=document.createElement("strong") - tmpNode2=document.createTextNode(snippetText.substring(pos+3,pos2); - tmpNode.append(tmpNode2); + tmpNode2=document.createTextNode(snippetText.substring(pos+3,pos2)); + tmpNode = tmpNode + tmpNode2; span.appendChild(tmpNode) snippetText=substring(pos2+4) @@ -61,7 +61,7 @@ function handleState(req) { var pos2=snippetText.indexOf(""); } if(snippetText != ""){ - tmpNode = document.createTextNode(snippetText.substring(0, pos); //other text + tmpNode = document.createTextNode(snippetText.substring(0, pos)); //other text span.appendChild(tmpNode); } }