Index: openacs-4/packages/acs-templating/www/resources/mktree.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/mktree.js,v diff -u -r1.3.4.1 -r1.3.4.2 --- openacs-4/packages/acs-templating/www/resources/mktree.js 27 Mar 2008 22:37:41 -0000 1.3.4.1 +++ openacs-4/packages/acs-templating/www/resources/mktree.js 29 Mar 2008 12:18:31 -0000 1.3.4.2 @@ -51,6 +51,10 @@ var mktree_registered = 1; } +if (typeof mktree_remember == 'undefined') { + var mktree_remember = false; +} + // Utility function to add an event listener function addEvent(o,e,f){ if (o.addEventListener){ o.addEventListener(e,f,true); return true; } @@ -137,7 +141,7 @@ // Search the document for UL elements with the correct CLASS name, then process them function convertTrees() { // this is a check in opera to avoid multiple renderings - if (typeof window.treeClass != 'undefined') { + if (typeof window.treeClass != 'undefined') { return; } setDefault("treeClass","mktree"); @@ -224,7 +228,7 @@ var treeId = node.getAttribute("id"); - if ( treeId ) { + if ( treeId && mktree_remember ) { return ( document.getElementById(treeId) != null ); } else { return false;