summaryrefslogtreecommitdiffstats
path: root/doc/src/template
diff options
context:
space:
mode:
authorMorten Engvoldsen <morten.engvoldsen@nokia.com>2010-05-07 12:03:45 (GMT)
committerMorten Engvoldsen <morten.engvoldsen@nokia.com>2010-05-07 12:03:45 (GMT)
commit7af5c4c01207960a23a349a55372ca7ecd8824f4 (patch)
tree760dcf6ed0423a7f3d42d6fa89a296520635cf0c /doc/src/template
parent8835bd7a0d46bff4d5a2fa02402ca9df6a2776d9 (diff)
downloadQt-7af5c4c01207960a23a349a55372ca7ecd8824f4.zip
Qt-7af5c4c01207960a23a349a55372ca7ecd8824f4.tar.gz
Qt-7af5c4c01207960a23a349a55372ca7ecd8824f4.tar.bz2
Doc: Tuning search script
Reviewed-by: Morten Engvoldsen
Diffstat (limited to 'doc/src/template')
-rwxr-xr-xdoc/src/template/scripts/functions.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/doc/src/template/scripts/functions.js b/doc/src/template/scripts/functions.js
index 306b628..108590f 100755
--- a/doc/src/template/scripts/functions.js
+++ b/doc/src/template/scripts/functions.js
@@ -48,37 +48,37 @@ function processNokiaData(response){
var linkEnd = "</a></li>";
if(propertyTags[i].getElementsByTagName('pageType')[0].firstChild.nodeValue == 'APIPage'){
- lookupCount=0;
+ lookupCount++;
//$('.live001').css('display','block');
for (var j=0; j< propertyTags[i].getElementsByTagName('pageWords').length; j++){
full_li_element = linkStart + propertyTags[i].getElementsByTagName('pageUrl')[j].firstChild.nodeValue;
full_li_element = full_li_element + "'>" + propertyTags[i].getElementsByTagName('pageTitle')[0].firstChild.nodeValue + linkEnd;
- $('#ul001').prepend(full_li_element);
+ $('#ul001').append(full_li_element);
}
}
if(propertyTags[i].getElementsByTagName('pageType')[0].firstChild.nodeValue == 'Article'){
- articleCount = 0;
+ articleCount++;
//$('.live002').css('display','block');
for (var j=0; j< propertyTags[i].getElementsByTagName('pageWords').length; j++){
full_li_element = linkStart + propertyTags[i].getElementsByTagName('pageUrl')[j].firstChild.nodeValue;
full_li_element =full_li_element + "'>" + propertyTags[i].getElementsByTagName('pageTitle')[0].firstChild.nodeValue + linkEnd ;
- $('#ul002').prepend(full_li_element);
+ $('#ul002').append(full_li_element);
}
}
if(propertyTags[i].getElementsByTagName('pageType')[0].firstChild.nodeValue == 'Example'){
- exampleCount = 0;
+ exampleCount++;
//$('.live003').css('display','block');
for (var j=0; j< propertyTags[i].getElementsByTagName('pageWords').length; j++){
full_li_element = linkStart + propertyTags[i].getElementsByTagName('pageUrl')[j].firstChild.nodeValue;
full_li_element =full_li_element + "'>" + propertyTags[i].getElementsByTagName('pageTitle')[0].firstChild.nodeValue + linkEnd ;
- $('#ul003').prepend(full_li_element);
+ $('#ul003').append(full_li_element);
}
}
}