[Zope-CVS] CVS: Packages/Moztop/moztop/content/Menu - ToolBar.js:1.15
Stephan Richter
srichter@cbu.edu
Thu, 16 Jan 2003 08:49:37 -0500
Update of /cvs-repository/Packages/Moztop/moztop/content/Menu
In directory cvs.zope.org:/tmp/cvs-serv24810/moztop/content/Menu
Modified Files:
ToolBar.js
Log Message:
Now ZPT Views work. You can edit the source and preview it. Works really
nice.
=== Packages/Moztop/moztop/content/Menu/ToolBar.js 1.14 => 1.15 ===
--- Packages/Moztop/moztop/content/Menu/ToolBar.js:1.14 Thu Jan 16 04:55:40 2003
+++ Packages/Moztop/moztop/content/Menu/ToolBar.js Thu Jan 16 08:49:35 2003
@@ -42,6 +42,7 @@
ds.Init(sources.getNext().QueryInterface(
Components.interfaces.nsIRDFDataSource));
+ /* Get type of object */
node = ds.getNode(rdf.Value);
node = node.getTarget("http://home.netscape.com/NC-rdf#resourcetype");
var type = node.getValue();
@@ -83,7 +84,9 @@
TypeRegistry = {"Folder":
["Content", "Preview", "MetaData", "Security"],
"Image":
- ["Upload", "Preview", "MetaData", "Security"]
+ ["Upload", "Preview", "MetaData", "Security"],
+ "ZPTPage":
+ ["Content", "Preview", "MetaData", "Security"]
}
var tabbox = document.createElement("tabbox");