From: Michael Wiebusch Date: Thu, 4 Jul 2013 15:22:16 +0000 (+0200) Subject: now with checkboxes to hide unchecked included config files X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=649332e0cbe336d00ccf3fd19af9e0346e01b345;p=mvdsensorcontrol.git now with checkboxes to hide unchecked included config files --- diff --git a/xml_spielwiese/cgitest.pl b/xml_spielwiese/cgitest.pl index 227fa0f..4242f40 100755 --- a/xml_spielwiese/cgitest.pl +++ b/xml_spielwiese/cgitest.pl @@ -212,11 +212,15 @@ sub print_ancestorInfo { my $tableNestingDepth = @ancestryList; for my $ancestor ( reverse(@ancestryList) ) { print ""; - print ""; + print ""; if ( $fileLevelHash{$ancestor} eq "1" ) { print < X  @@ -767,7 +771,11 @@ sub print_registers { die "xmlfile given to sub print_registers is unknown"; } my @registers = sort by_name $xmltree->findnodes("/MAPS/register"); - print "
"; + print "
"; } for my $ancestor (@ancestryList) { - print "$ancestor
$ancestor "; + print ""; + print +"
"; + print "
"; for my $register (@registers) { my $registerName = $register->findvalue("./\@name"); @@ -906,7 +914,9 @@ EOF if ( ( any2dec($fieldValue) < 0 ) or ( any2dec($fieldValue) > $maxFieldVal ) ) { - print ""; # just debug + print +"" + ; # just debug } } print "
!!!Above value not in allowed range!!!
!!!Above value not in allowed range!!!
"; @@ -1134,6 +1144,26 @@ function collapseElement(elementId) { } } +function hideThisFileLevel(classname,checked){ + +var array = document.getElementById("configFileRegisters").getElementsByClassName(classname); + +for(var i = 0; i < array.length; i++) +{ + if(checked){ + array[i].style.visibility = 'visible'; + + }else{ + + array[i].style.visibility = 'collapse'; + } + + +} + + +} +