summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorMorten Engvoldsen <morten.engvoldsen@nokia.com>2010-11-01 13:43:14 (GMT)
committerMorten Engvoldsen <morten.engvoldsen@nokia.com>2010-11-01 13:43:14 (GMT)
commit6c796c75bfde7e79ec0802e0b7245283fc46d46e (patch)
treed8d3d40871a3dbc68eda2f89edbd32f3a43ca22f /doc
parent98d8eeabea4b6c0da01380cec30fc6da5619be2e (diff)
downloadQt-6c796c75bfde7e79ec0802e0b7245283fc46d46e.zip
Qt-6c796c75bfde7e79ec0802e0b7245283fc46d46e.tar.gz
Qt-6c796c75bfde7e79ec0802e0b7245283fc46d46e.tar.bz2
Doc: Fixing bug in sorting script for search results.
Reviewed-by: Geir Vattekar
Diffstat (limited to 'doc')
-rwxr-xr-xdoc/src/template/scripts/functions.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/src/template/scripts/functions.js b/doc/src/template/scripts/functions.js
index 47539d2..62bc535 100755
--- a/doc/src/template/scripts/functions.js
+++ b/doc/src/template/scripts/functions.js
@@ -105,17 +105,17 @@ function processNokiaData(response){
/* start a new list element */
full_li_element = '<li';
/* if the pageType element reads APIPage, add class name api */
- if (propertyTags[j].getElementsByTagName('pageType')[0].firstChild.nodeValue == 'APIPage') {
+ if (propertyTags[i].getElementsByTagName('pageType')[0].firstChild.nodeValue == 'APIPage') {
full_li_element += ' class="api"';
apiCount++;
}
/* if the pageType element reads Article, add class name article */
- else if (propertyTags[j].getElementsByTagName('pageType')[0].firstChild.nodeValue == 'Article') {
+ else if (propertyTags[i].getElementsByTagName('pageType')[0].firstChild.nodeValue == 'Article') {
full_li_element += ' class="article"';
articleCount++;
}
/* if the pageType element reads Example, add class name example */
- else if (propertyTags[j].getElementsByTagName('pageType')[0].firstChild.nodeValue == 'Example') {
+ else if (propertyTags[i].getElementsByTagName('pageType')[0].firstChild.nodeValue == 'Example') {
full_li_element += ' class="example"';
exampleCount++;
}