phpgroupware-cvs
[Top][All Lists]
Advanced

[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.2.1,1.3.2.2
Date: Mon, 23 Jun 2003 16:31:24 -0400

Update of 
/cvsroot/phpgroupware/sitemgr/sitemgr-site/templates/default/modules/bookmarks
In directory 
subversions:/tmp/cvs-serv14915/sitemgr-site/templates/default/modules/bookmarks

Modified Files:
      Tag: Version-0_9_16-branch
        xbel.xsl 
Log Message:
sync up with HEAD


Index: xbel.xsl
===================================================================
RCS file: 
/cvsroot/phpgroupware/sitemgr/sitemgr-site/templates/default/modules/bookmarks/xbel.xsl,v
retrieving revision 1.3.2.1
retrieving revision 1.3.2.2
diff -C2 -r1.3.2.1 -r1.3.2.2
*** xbel.xsl    8 Apr 2003 18:13:04 -0000       1.3.2.1
--- xbel.xsl    23 Jun 2003 20:31:21 -0000      1.3.2.2
***************
*** 10,13 ****
--- 10,14 ----
  
   <xsl:output method="html" indent="yes" encoding="us-ascii"/>
+  <xsl:param name="blockid" />
  
   <!-- XBEL ========================================================-->
***************
*** 15,32 ****
    <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();
!       document.cookie = 'bookmarks[expanded][' + catid + ']=; expires=' + 
now.toGMTString();
  }
  
! function toggle_bm(image, catid)
  {
        if (document.getElementById)
--- 16,33 ----
    <script type='text/javascript'>
  // the whole thing only works in a DOM capable browser or IE 4*/
! // the functions are postfixed  by the blockid so that their names do not 
conflict 
  // with other modules that use the same tree menu
! function add<xsl:value-of select="$blockid"/>(catid)
  {
!       document.cookie = 'block[<xsl:value-of select="$blockid"/>][expanded][' 
+ catid + ']=';
  }
  
! function remove<xsl:value-of select="$blockid"/>(catid)
  {
        var now = new Date();
!       document.cookie = 'block[<xsl:value-of select="$blockid"/>][expanded][' 
+ catid + ']=; expires=' + now.toGMTString();
  }
  
! function toggle<xsl:value-of select="$blockid"/>(image, catid)
  {
        if (document.getElementById)
***************
*** 41,45 ****
        if (styleObj.style.display == 'none')
        {
!               add_bm(catid);
                image.src = 'images/tree_collapse.gif';
                styleObj.style.display = 'block';
--- 42,46 ----
        if (styleObj.style.display == 'none')
        {
!               add<xsl:value-of select="$blockid"/>(catid);
                image.src = 'images/tree_collapse.gif';
                styleObj.style.display = 'block';
***************
*** 47,51 ****
        else
        {
!               remove_bm(catid);
                image.src = 'images/tree_expand.gif';
                styleObj.style.display = 'none';
--- 48,52 ----
        else
        {
!               remove<xsl:value-of select="$blockid"/>(catid);
                image.src = 'images/tree_expand.gif';
                styleObj.style.display = 'none';
***************
*** 76,80 ****
         </xsl:attribute>
         <xsl:attribute name="onclick">
!         <xsl:text>toggle_bm(this, '</xsl:text>
          <xsl:value-of select="@id"/>
          <xsl:text>')</xsl:text>
--- 77,81 ----
         </xsl:attribute>
         <xsl:attribute name="onclick">
!         <xsl:text>toggle</xsl:text><xsl:value-of 
select="$blockid"/><xsl:text>(this, '</xsl:text>
          <xsl:value-of select="@id"/>
          <xsl:text>')</xsl:text>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]