summaryrefslogtreecommitdiffstats
path: root/doc/src/template/scripts/functions.js
diff options
context:
space:
mode:
authorMorten Engvoldsen <morten.engvoldsen@nokia.com>2010-10-01 12:56:00 (GMT)
committerMorten Engvoldsen <morten.engvoldsen@nokia.com>2010-10-01 12:56:00 (GMT)
commit628c9625c4bf6d0e189f9e8da5268eb7629e7597 (patch)
tree24955d53963a59a40642539a4ba95e797b63a443 /doc/src/template/scripts/functions.js
parentdc4d4a87c0c17e41c0e16bc481db82de0f620596 (diff)
downloadQt-628c9625c4bf6d0e189f9e8da5268eb7629e7597.zip
Qt-628c9625c4bf6d0e189f9e8da5268eb7629e7597.tar.gz
Qt-628c9625c4bf6d0e189f9e8da5268eb7629e7597.tar.bz2
Doc: Fixing link titles and error color in search results
Diffstat (limited to 'doc/src/template/scripts/functions.js')
-rwxr-xr-xdoc/src/template/scripts/functions.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/doc/src/template/scripts/functions.js b/doc/src/template/scripts/functions.js
index b89e05f..47539d2 100755
--- a/doc/src/template/scripts/functions.js
+++ b/doc/src/template/scripts/functions.js
@@ -124,7 +124,7 @@ function processNokiaData(response){
/* adding the URL attribute*/
full_li_element += propertyTags[i].getElementsByTagName('pageUrl')[j].firstChild.nodeValue;
/* adding the link title and closing the link and list elements */
- full_li_element += '">' + propertyTags[i].getElementsByTagName('pageTitle')[0].firstChild.nodeValue + '</a></li>';
+ full_li_element += '">' + propertyTags[i].getElementsByTagName('pageWords')[0].firstChild.nodeValue + '</a></li>';
/* appending the list element to the #resultlist div*/
$('#resultlist').append(full_li_element);
}
@@ -139,7 +139,12 @@ function processNokiaData(response){
$('#apicount').html(apiCount);
$('#articlecount').html(articleCount);
$('#examplecount').html(exampleCount);
- }
+
+ }
+ else {
+ $('#pageType').addClass('red');
+ }
+
// Filtering results in display
@@ -181,6 +186,7 @@ function CheckEmptyAndLoadList()
/* Start Extracting information for feedback and adding this to the feedback form */
var pageUrl = window.location.href;
var pageVal = $('title').html();
+ $('#pageType').removeClass('red');
$('#feedUrl').remove();
$('#pageVal').remove();
$('.menuAlert').remove();