[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: sitemgr/sitemgr-site/templates/default/modules/
From: |
Michael Totschnig <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: sitemgr/sitemgr-site/templates/default/modules/bookmarks xbel.xsl,1.3,1.4 |
Date: |
Tue, 08 Apr 2003 14:33:38 -0400 |
Update of
/cvsroot/phpgroupware/sitemgr/sitemgr-site/templates/default/modules/bookmarks
In directory
subversions:/tmp/cvs-serv10319/sitemgr-site/templates/default/modules/bookmarks
Modified Files:
xbel.xsl
Log Message:
renamed class bo to sitebo, so that modules can call other app's bo classes
as the bookmarks modules does now
changed the function names in bookmarks menutree to avoid conflicts
Index: xbel.xsl
===================================================================
RCS file:
/cvsroot/phpgroupware/sitemgr/sitemgr-site/templates/default/modules/bookmarks/xbel.xsl,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** xbel.xsl 26 Mar 2003 22:22:18 -0000 1.3
--- xbel.xsl 8 Apr 2003 18:33:36 -0000 1.4
***************
*** 15,25 ****
<script type='text/javascript'>
// the whole thing only works in a DOM capable browser or IE 4*/
!
! function add(catid)
{
document.cookie = 'bookmarks[expanded][' + catid + ']=';
}
! function remove(catid)
{
var now = new Date();
--- 15,26 ----
<script type='text/javascript'>
// the whole thing only works in a DOM capable browser or IE 4*/
! // the functions have a bm postfix so that their names do not conflict
! // with other modules that use the same tree menu
! function add_bm(catid)
{
document.cookie = 'bookmarks[expanded][' + catid + ']=';
}
! function remove_bm(catid)
{
var now = new Date();
***************
*** 27,31 ****
}
! function toggle(image, catid)
{
if (document.getElementById)
--- 28,32 ----
}
! function toggle_bm(image, catid)
{
if (document.getElementById)
***************
*** 40,44 ****
if (styleObj.style.display == 'none')
{
! add(catid);
image.src = 'images/tree_collapse.gif';
styleObj.style.display = 'block';
--- 41,45 ----
if (styleObj.style.display == 'none')
{
! add_bm(catid);
image.src = 'images/tree_collapse.gif';
styleObj.style.display = 'block';
***************
*** 46,50 ****
else
{
! remove(catid);
image.src = 'images/tree_expand.gif';
styleObj.style.display = 'none';
--- 47,51 ----
else
{
! remove_bm(catid);
image.src = 'images/tree_expand.gif';
styleObj.style.display = 'none';
***************
*** 75,79 ****
</xsl:attribute>
<xsl:attribute name="onclick">
! <xsl:text>toggle(this, '</xsl:text>
<xsl:value-of select="@id"/>
<xsl:text>')</xsl:text>
--- 76,80 ----
</xsl:attribute>
<xsl:attribute name="onclick">
! <xsl:text>toggle_bm(this, '</xsl:text>
<xsl:value-of select="@id"/>
<xsl:text>')</xsl:text>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: sitemgr/sitemgr-site/templates/default/modules/bookmarks xbel.xsl,1.3,1.4,
Michael Totschnig <address@hidden> <=
- Prev by Date:
[Phpgroupware-cvs] CVS: sitemgr/modules class.module_bookmarks.inc.php,1.2,1.3
- Next by Date:
[Phpgroupware-cvs] CVS: bookmarks/inc class.bo.inc.php,1.2,1.3 class.ui.inc.php,1.2,1.3
- Previous by thread:
[Phpgroupware-cvs] CVS: sitemgr/modules class.module_bookmarks.inc.php,1.2,1.3
- Next by thread:
[Phpgroupware-cvs] CVS: bookmarks/inc class.bo.inc.php,1.2,1.3 class.ui.inc.php,1.2,1.3
- Index(es):