[Zope3-checkins] CVS: Zope3/src/zope/app/browser/skins/rotterdam - xmltree.js:1.3

Jim Fulton jim@zope.com
Sat, 28 Dec 2002 13:44:02 -0500


Update of /cvs-repository/Zope3/src/zope/app/browser/skins/rotterdam
In directory cvs.zope.org:/tmp/cvs-serv7935

Modified Files:
	xmltree.js 
Log Message:
Changed the way the icon_url is used.  This variable is computed on
the server as an absolute url and it should be used as such.

TODO:

It would be good to compute the expansion icon (pl.gif and mi.gif)
urls in a similar fashion. As it is, they are assumed to be in the
root folder. This means that they can't be changed locally. This is
probably not a big deal.  They could be set by the template page as
the base url and local urls are.



=== Zope3/src/zope/app/browser/skins/rotterdam/xmltree.js 1.2 => 1.3 ===
--- Zope3/src/zope/app/browser/skins/rotterdam/xmltree.js:1.2	Sat Dec 28 09:11:59 2002
+++ Zope3/src/zope/app/browser/skins/rotterdam/xmltree.js	Sat Dec 28 13:44:01 2002
@@ -373,7 +373,7 @@
         // create elem for item icon
         var iconElem = document.createElement('icon');
         expandElem.appendChild(iconElem);
-        iconElem.style.backgroundImage = 'url("' + baseurl + icon_url + '")';
+        iconElem.style.backgroundImage = 'url("' + icon_url + '")';
         // create title
         var titleElem = document.createElement('title');
         var newtextnode = document.createTextNode(title);