Index: openacs-4/packages/imsld/www/imsld-tree.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/imsld/www/imsld-tree.adp,v diff -u -r1.5 -r1.6 --- openacs-4/packages/imsld/www/imsld-tree.adp 4 Apr 2006 10:27:53 -0000 1.5 +++ openacs-4/packages/imsld/www/imsld-tree.adp 18 Apr 2006 16:20:58 -0000 1.6 @@ -29,8 +29,10 @@ var a = as[i]; for( var x = 0; x < a.attributes.length; x++ ) { if( a.attributes[x].nodeName.toLowerCase() == 'href' ) { - var enviromenturl = a.attributes[x].nodeValue.replace(/activity-frame/, "environment-frame"); - a.setAttribute('onClick',"parent.environment.location='" + enviromenturl + "'"); + if ( a.attributes[x].nodeValue.match(/activity-frame/) ) { + var enviromenturl = a.attributes[x].nodeValue.replace(/activity-frame/, "environment-frame"); + a.setAttribute('onClick',"parent.environment.location='" + enviromenturl + "'"); + } } } }