Author: ludovic
Date: 2007-09-30 11:13:19 +0200 (Sun, 30 Sep 2007)
New Revision: 5187

Modified:
   xwiki-products/curriki/trunk/web/src/main/webapp/skins/curriki8/macros.vm
Log:
CURRIKI-927 Arrows/Expand collapse triangles don't function to open and close 
content blocks in print view

Modified: 
xwiki-products/curriki/trunk/web/src/main/webapp/skins/curriki8/macros.vm
===================================================================
--- xwiki-products/curriki/trunk/web/src/main/webapp/skins/curriki8/macros.vm   
2007-09-30 08:57:26 UTC (rev 5186)
+++ xwiki-products/curriki/trunk/web/src/main/webapp/skins/curriki8/macros.vm   
2007-09-30 09:13:19 UTC (rev 5187)
@@ -285,8 +285,9 @@
 #end
 <div id="section_${seccounter}">
 <div class="titlebar titlebar_$color" id="section${seccounter}titlebar"><h3 
id="section${seccounter}title"#if($link!="") 
class="titlebar_left"#end>$lefttitle</h3>#if($link!="")<div 
id="section${seccounter}links" class="titlebarRight"><a href="$link" 
title="$righttitle">$righttitletrunc </a></div>#end</div>
-#if(!$isPrint)
 <script type="text/javascript">
+#if(!$togglesectionvisibility)
+#set($togglesectionvisibility = 1)
 function toggleSectionVisibility(seccounter, showhide){
   var seccontent = document.getElementById("section" + seccounter + "content");
   if(eltHasClass(seccontent, "hidden")){
@@ -307,6 +308,7 @@
   }
   return false;
 }
+#end
 addClass(document.getElementById("section${seccounter}title"), 
"titlebar_left");
 #if($link=="")
 var linksDiv = document.createElement("div");
@@ -332,7 +334,6 @@
 showhide${seccounter}.onclick = new 
Function("toggleSectionVisibility(${seccounter}, showhide${seccounter}); return 
false;");
 linksDiv.appendChild(showhide${seccounter});
 </script>
-#end
 #if($show)
 <div id="section${seccounter}content" class="">
 #else
@@ -891,8 +892,9 @@
 #end
 </div>
 <div class="clearfloats"></div>
-#if(!$isPrint)
 <script type="text/javascript">
+#if(!$togglesectionvisibility)
+#set($togglesectionvisibility = 1)
 function toggleSectionVisibility(seccounter, showhide){
   var seccontent = document.getElementById("section" + seccounter + "content");
   if(eltHasClass(seccontent, "hidden")){
@@ -913,6 +915,7 @@
   }
   return false;
 }
+#end
 addClass(document.getElementById("section${seccounter}title"), 
"titlebar_left");
 var showhide${seccounter} = 
document.getElementById("section${seccounter}title");
 showhide${seccounter}.setAttribute("onclick", 
"toggleSectionVisibility(${seccounter}, showhide${seccounter}); return false;");
@@ -921,7 +924,6 @@
 createCookie("Section${seccounter}Hidden", true, "");
 #end
 </script>
-#end
 <div id="section${seccounter}content" class="#if($doHide)hidden#end">
 #end
 ##

_______________________________________________
notifications mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/notifications

Reply via email to