Team:Warsaw/JSTest

From 2008.igem.org

(Difference between revisions)
Line 105: Line 105:
for (var i=0;i<titles.length;i++)
for (var i=0;i<titles.length;i++)
{
{
-
if (!titles[i]==undefined)  
+
if (titles[i]!=undefined)  
{
{
var notags=removeHTMLTags(trimStr(titles[i]));
var notags=removeHTMLTags(trimStr(titles[i]));
-
if (notags.search(removeHTMLTags(trimStr(title)))>0) return "Hit: "+titles[i];
+
if (notags==removeHTMLTags(trimStr(title))) return "Hit: "+titles[i];
}
}
}
}

Revision as of 01:23, 26 October 2008

Gallery Bricks Notebook Team Project Home