summaryrefslogtreecommitdiffstats
path: root/doc/src/template/scripts/functions.js
diff options
context:
space:
mode:
authorMorten Engvoldsen <morten.engvoldsen@nokia.com>2010-05-11 13:30:12 (GMT)
committerMorten Engvoldsen <morten.engvoldsen@nokia.com>2010-05-11 13:30:12 (GMT)
commit949f49c9ea4dadfc6e7f3bf7d822830b7ef8a8e6 (patch)
treeb859ac510e297bd9166839058398fa9ff548306d /doc/src/template/scripts/functions.js
parent70dd6652b8f649871e6801cc9190543f43daa650 (diff)
downloadQt-949f49c9ea4dadfc6e7f3bf7d822830b7ef8a8e6.zip
Qt-949f49c9ea4dadfc6e7f3bf7d822830b7ef8a8e6.tar.gz
Qt-949f49c9ea4dadfc6e7f3bf7d822830b7ef8a8e6.tar.bz2
Doc: Fixed tables and images for the new docs
Added page.png to images dir. Fixed tables "generic"
Diffstat (limited to 'doc/src/template/scripts/functions.js')
-rwxr-xr-xdoc/src/template/scripts/functions.js14
1 files changed, 11 insertions, 3 deletions
diff --git a/doc/src/template/scripts/functions.js b/doc/src/template/scripts/functions.js
index 2362bc4..09b7de3 100755
--- a/doc/src/template/scripts/functions.js
+++ b/doc/src/template/scripts/functions.js
@@ -50,7 +50,6 @@ function processNokiaData(response){
if(propertyTags[i].getElementsByTagName('pageType')[0].firstChild.nodeValue == 'APIPage'){
lookupCount++;
//$('.live001').css('display','block');
- $('#ul001 .defaultLink').css('display','none');
for (var j=0; j< propertyTags[i].getElementsByTagName('pageWords').length; j++){
@@ -58,13 +57,14 @@ function processNokiaData(response){
full_li_element = full_li_element + "'>" + propertyTags[i].getElementsByTagName('pageTitle')[0].firstChild.nodeValue + linkEnd;
$('#ul001').append(full_li_element);
+ $('#ul001 .defaultLink').css('display','none');
+
}
}
if(propertyTags[i].getElementsByTagName('pageType')[0].firstChild.nodeValue == 'Article'){
articleCount++;
//$('.live002').css('display','block');
- $('#ul002 .defaultLink').css('display','none');
for (var j=0; j< propertyTags[i].getElementsByTagName('pageWords').length; j++){
@@ -72,12 +72,13 @@ function processNokiaData(response){
full_li_element =full_li_element + "'>" + propertyTags[i].getElementsByTagName('pageTitle')[0].firstChild.nodeValue + linkEnd ;
$('#ul002').append(full_li_element);
+ $('#ul002 .defaultLink').css('display','none');
+
}
}
if(propertyTags[i].getElementsByTagName('pageType')[0].firstChild.nodeValue == 'Example'){
exampleCount++;
//$('.live003').css('display','block');
- $('#ul003 .defaultLink').css('display','none');
for (var j=0; j< propertyTags[i].getElementsByTagName('pageWords').length; j++){
@@ -85,6 +86,8 @@ function processNokiaData(response){
full_li_element =full_li_element + "'>" + propertyTags[i].getElementsByTagName('pageTitle')[0].firstChild.nodeValue + linkEnd ;
$('#ul003').append(full_li_element);
+ $('#ul003 .defaultLink').css('display','none');
+
}
}
}
@@ -122,6 +125,11 @@ function CheckEmptyAndLoadList()
$(document).ready(function () {
var pageTitle = $('title').html();
$('#feedform').append('<input id="page" name="pageVal" value="'+pageTitle+'" style="display:none;">');
+ var currentString = $('#pageType').val() ;
+ if(currentString.length < 1){
+ $('.defaultLink').css('display','block');
+ CheckEmptyAndLoadList();
+ }
$('#pageType').keyup(function () {
var searchString = $('#pageType').val() ;