[Zope3-checkins]
SVN: Zope3/trunk/src/zope/app/rotterdam/navigation_macros.pt
navigation_tree_js macro is aware for other
Dominik Huber
dominik.huber at projekt01.ch
Thu Oct 14 07:37:12 EDT 2004
Log message for revision 28163:
navigation_tree_js macro is aware for other
body onload collaborators (global body_onload variable)
Changed:
U Zope3/trunk/src/zope/app/rotterdam/navigation_macros.pt
-=-
Modified: Zope3/trunk/src/zope/app/rotterdam/navigation_macros.pt
===================================================================
--- Zope3/trunk/src/zope/app/rotterdam/navigation_macros.pt 2004-10-14 11:29:39 UTC (rev 28162)
+++ Zope3/trunk/src/zope/app/rotterdam/navigation_macros.pt 2004-10-14 11:37:10 UTC (rev 28163)
@@ -12,9 +12,14 @@
tal:attributes="src string:${context/++resource++xmltree.js}" >
</script>
+ <tal:var condition="not: body_onload | nothing" >
+ <tal:block define="global body_onload string:" />
+ </tal:var>
+
<tal:var define="rooturl request/getApplicationURL;
thisbaseurl request/URL/-1;
- global body_onload string:loadtree('${rooturl}/', '${thisbaseurl}/');" />
+ loadtreejs string:loadtree('${rooturl}/', '${thisbaseurl}/');
+ global body_onload python: loadtreejs + ';; ' + body_onload" />
</metal:tree>
More information about the Zope3-Checkins
mailing list