From: <ka...@us...> - 2011-09-30 18:52:02
|
Revision: 9096 http://docbook.svn.sourceforge.net/docbook/?rev=9096&view=rev Author: kasunbg Date: 2011-09-30 18:51:56 +0000 (Fri, 30 Sep 2011) Log Message: ----------- remove some JS warninings Modified Paths: -------------- trunk/xsl/webhelp/template/content/search/nwSearchFnt.js Modified: trunk/xsl/webhelp/template/content/search/nwSearchFnt.js =================================================================== --- trunk/xsl/webhelp/template/content/search/nwSearchFnt.js 2011-09-30 18:30:14 UTC (rev 9095) +++ trunk/xsl/webhelp/template/content/search/nwSearchFnt.js 2011-09-30 18:51:56 UTC (rev 9096) @@ -732,20 +732,20 @@ fileAndWordListValuesOnly = fileAndWordListValuesOnly.sort(compare_nbMots); var listToOutput = new Array(); - for (var j in fileAndWordListValuesOnly) { + for (var fawlvoIdx in fileAndWordListValuesOnly) { for (t in temptab) { - if (temptab[t].motsliste == fileAndWordListValuesOnly[j]) { - if (listToOutput[j] == undefined) { - listToOutput[j] = new Array(temptab[t]); + if (temptab[t].motsliste == fileAndWordListValuesOnly[fawlvoIdx]) { + if (listToOutput[fawlvoIdx] == undefined) { + listToOutput[fawlvoIdx] = new Array(temptab[t]); } else { - listToOutput[j].push(temptab[t]); + listToOutput[fawlvoIdx].push(temptab[t]); } } } } // Sort results by scoring, descending on the same group - for (var i in listToOutput) { - listToOutput[i].sort(function(a, b){ + for (var ltoIdx in listToOutput) { + listToOutput[ltoIdx].sort(function(a, b){ return b.scoring - a.scoring; }); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |