[Zope-CVS] CVS: Packages/Moztop/moztop/content/menu - commandset.js:1.1

Paul Everitt paul@zope.com
Thu, 3 Apr 2003 04:02:05 -0500


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

Added Files:
	commandset.js 
Log Message:
Fixed reload and also displaying log messages.  Both moved to 
use dont-build-content on the tree, which changes the way 
you access content in the tree.

Note that many operations don't collapse and the tree like they 
used to.  Also, restarting mozilla puts the tree in the correct 
state that it was previously, because of the move to 
dont-build-content.

refresh works much better.  It calls the .refresh method, instead 
of adding more (duplicate) datasources to the tree and doing a 
rebuild.

Still need to figure out the fix for delete.  I'll probably 
punt for now and reload the RDF, rather than making local 
assertions.


=== Added File Packages/Moztop/moztop/content/menu/commandset.js ===
/* Some utility functions for glueing together commands */

function saveSelectedTab () {
    var tabpanels = document.getElementById("active-contents-tabpanels");
    var active = tabpanels.selectedPanel;
    active.save();
}