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,1.3.2.1
Date: Tue, 08 Apr 2003 14:13:06 -0400

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

Modified Files:
      Tag: Version-0_9_16-branch
        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.3.2.1
diff -C2 -r1.3 -r1.3.2.1
*** xbel.xsl    26 Mar 2003 22:22:18 -0000      1.3
--- xbel.xsl    8 Apr 2003 18:13:04 -0000       1.3.2.1
***************
*** 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>





reply via email to

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