diff options
author | Morten Engvoldsen <morten.engvoldsen@nokia.com> | 2010-10-04 06:17:13 (GMT) |
---|---|---|
committer | Morten Engvoldsen <morten.engvoldsen@nokia.com> | 2010-10-04 06:17:13 (GMT) |
commit | 723fcb85aeb69b8dbfcba57b0b96c7adaf9cd00b (patch) | |
tree | 4ddef15ac99c9a4babd23986c4f93eaa2009e512 /doc/src/template/scripts/functions.js | |
parent | c86449e2e45b67662b652d58e95e0ca7c99782fd (diff) | |
parent | 9d0317c91dbbe660af2ed2aa8ea47446049467d2 (diff) | |
download | Qt-723fcb85aeb69b8dbfcba57b0b96c7adaf9cd00b.zip Qt-723fcb85aeb69b8dbfcba57b0b96c7adaf9cd00b.tar.gz Qt-723fcb85aeb69b8dbfcba57b0b96c7adaf9cd00b.tar.bz2 |
Merge branch '4.7' into mimir
Diffstat (limited to 'doc/src/template/scripts/functions.js')
-rwxr-xr-x | doc/src/template/scripts/functions.js | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/doc/src/template/scripts/functions.js b/doc/src/template/scripts/functions.js index 0bb88a8..47539d2 100755 --- a/doc/src/template/scripts/functions.js +++ b/doc/src/template/scripts/functions.js @@ -89,7 +89,7 @@ function processNokiaData(response){ /* fetch the responce from the server using page as the root element */ var propertyTags = response.getElementsByTagName('page'); /* reset counters */ - var lookupCount = 0; + var apiCount = 0; var articleCount = 0; var exampleCount = 0; var full_li_element; @@ -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(); |