[Zope-CVS] CVS: Packages/Moztop/moztop/content/Menu - ToolBar.js:1.6
Stephan Richter
srichter@cbu.edu
Wed, 15 Jan 2003 07:40:54 -0500
Update of /cvs-repository/Packages/Moztop/moztop/content/Menu
In directory cvs.zope.org:/tmp/cvs-serv29945/moztop/content/Menu
Modified Files:
ToolBar.js
Log Message:
Gave @@contents.rdf Zope.View permissions so that we do not need to
authenticate and do weired things.
=== Packages/Moztop/moztop/content/Menu/ToolBar.js 1.5 => 1.6 ===
--- Packages/Moztop/moztop/content/Menu/ToolBar.js:1.5 Wed Jan 15 00:21:20 2003
+++ Packages/Moztop/moztop/content/Menu/ToolBar.js Wed Jan 15 07:40:51 2003
@@ -89,7 +89,14 @@
/* Create all view tabs for a content object of the specified type */
function createViewTabs(type, tabpanel) {
var tabs = tabpanel.firstChild.childNodes[0];
- var tabpanels = tabpanel.firstChild.childNodes[1]
+ var tabpanels = tabpanel.firstChild.childNodes[1];
+
+
+ var newbutton = document.createElement("button");
+ newbutton.setAttribute("label","Show Datasource");
+ newbutton.setAttribute("onclick","displayDS();");
+ var toolbar = document.getElementById("moztop-toolbar");
+ toolbar.appendChild(newbutton);
var newtab = tabs.firstChild.cloneNode(true);
newtab.label = "Contents";