[Zope-CVS] CVS: Packages/Moztop/moztop/content/Menu - ToolBar.js:1.16 ToolBarOverlay.xul:1.8

Stephan Richter srichter@cbu.edu
Thu, 16 Jan 2003 09:13:07 -0500


Update of /cvs-repository/Packages/Moztop/moztop/content/Menu
In directory cvs.zope.org:/tmp/cvs-serv27849/moztop/content/Menu

Modified Files:
	ToolBar.js ToolBarOverlay.xul 
Log Message:
Noew the user can close the opened Content Object Tabs.


=== Packages/Moztop/moztop/content/Menu/ToolBar.js 1.15 => 1.16 ===
--- Packages/Moztop/moztop/content/Menu/ToolBar.js:1.15	Thu Jan 16 08:49:35 2003
+++ Packages/Moztop/moztop/content/Menu/ToolBar.js	Thu Jan 16 09:13:04 2003
@@ -121,3 +121,12 @@
 
     tabs.firstChild.setAttribute("selected", true);
 }
+
+function removeActiveContentTab() {
+    var tabs = document.getElementById("active-contents-tabs");
+    var tabpanels = document.getElementById("active-contents-tabpanels");
+    tabs.removeChild(tabs.selectedItem);
+    tabpanels.removeChild(tabpanels.selectedPanel);
+    tabs.firstChild.setAttribute("selected", "true");
+    tabelpanels.selectedPanel = tabelpanels.firstChild;
+}


=== Packages/Moztop/moztop/content/Menu/ToolBarOverlay.xul 1.7 => 1.8 ===
--- Packages/Moztop/moztop/content/Menu/ToolBarOverlay.xul:1.7	Thu Jan 16 06:01:15 2003
+++ Packages/Moztop/moztop/content/Menu/ToolBarOverlay.xul	Thu Jan 16 09:13:04 2003
@@ -12,6 +12,8 @@
         onclick="window.open('chrome://moztop/content/connection-wizard.xul',
                              'Connection Wizard', 'chrome');" />
     <button onclick="reloadContentData();" label="Reload Content" />
+    <button onclick="removeActiveContentTab();" 
+            label="Remove Active Content Tab" />
     <spring flex="100%" />
   </toolbar>