lenya-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gre...@apache.org
Subject cvs commit: cocoon-lenya/src/webapp/lenya/xslt/menu menu.xsl
Date Wed, 20 Aug 2003 16:48:24 GMT
gregor      2003/08/20 09:48:24

  Modified:    src/webapp/lenya/resources/javascript tree.js
               src/webapp/lenya/xslt/menu menu.xsl
  Log:
  #161 preserve node when switching from info area to authoring or live
  
  Revision  Changes    Path
  1.9       +14 -1     cocoon-lenya/src/webapp/lenya/resources/javascript/tree.js
  
  Index: tree.js
  ===================================================================
  RCS file: /home/cvs/cocoon-lenya/src/webapp/lenya/resources/javascript/tree.js,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- tree.js	20 Aug 2003 15:31:55 -0000	1.8
  +++ tree.js	20 Aug 2003 16:48:24 -0000	1.9
  @@ -95,8 +95,20 @@
      url = urlhead +'info'+ urltail;
      getElById('en').href = url+'_en.html?lenya.language=en&lenya.area='+area;
      getElById('de').href = url+'_de.html?lenya.language=de&lenya.area='+area;
  +   getElById('de').href = url+'_de.html?lenya.language=de&lenya.area='+area;
   }
   
  +function setAreaTabs(url) 
  +{
  +   // rewrite the links of the language tabs when a node is clicked
  +   area = url.substring(url.indexOf('lenya.area=')+11, url.length);
  +   urlhead = url.substring(0, url.indexOf(area)); // strip usecase   
  +   urltail = url.substring(url.indexOf(area)+area.length, url.indexOf('?')); // strip usecase
  +   getElById('authoring-tab').href = urlhead +'authoring'+ urltail;
  +   getElById('live-tab').href = urlhead +'live'+ urltail;
  +}
  +
  +
   function drawFolder(insertAtObj) 
   { 
     var nodeName = ""
  @@ -621,6 +633,7 @@
       if (isLinked(target)) {
           window.open(target,windowName);
           setLanguageTabs(target);
  +        setAreaTabs(target);
       }
   }
   
  
  
  
  1.22      +4 -4      cocoon-lenya/src/webapp/lenya/xslt/menu/menu.xsl
  
  Index: menu.xsl
  ===================================================================
  RCS file: /home/cvs/cocoon-lenya/src/webapp/lenya/xslt/menu/menu.xsl,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- menu.xsl	14 Aug 2003 10:18:29 -0000	1.21
  +++ menu.xsl	20 Aug 2003 16:48:24 -0000	1.22
  @@ -25,7 +25,7 @@
     <img src="/lenya/lenya/menu/images/blau_anfang_oben.gif" />
   </td>
   <td background="/lenya/lenya/menu/images/grau-bg2.gif">
  -  <a href="{url-info/context-prefix}/{url-info/publication-id}/admin/index.html">
  +  <a id="admin-tab" href="{url-info/context-prefix}/{url-info/publication-id}/admin/index.html">
      <xsl:choose><xsl:when test="url-info/area = 'admin'">
       <img border="0" src="/lenya/lenya/menu/images/admin_active.gif" />
       </xsl:when><xsl:otherwise>
  @@ -40,21 +40,21 @@
     	</xsl:choose>
     </xsl:variable>
     
  -  <a href="{url-info/context-prefix}/{url-info/publication-id}/info{$document-url}">
  +  <a id="info-tab" href="{url-info/context-prefix}/{url-info/publication-id}/info{$document-url}">
      <xsl:choose><xsl:when test="url-info/area = 'info'">
       <img border="0" src="/lenya/lenya/menu/images/info_active.gif" />
       </xsl:when><xsl:otherwise>
        <img border="0" src="/lenya/lenya/menu/images/info_inactive.gif" />
       </xsl:otherwise></xsl:choose>
     </a>
  -  <a href="{url-info/context-prefix}/{url-info/publication-id}/authoring{$document-url}">
  +  <a id="authoring-tab" href="{url-info/context-prefix}/{url-info/publication-id}/authoring{$document-url}">
      <xsl:choose><xsl:when test="url-info/area = 'authoring'">
       <img border="0" src="/lenya/lenya/menu/images/authoring_active.gif" />
       </xsl:when><xsl:otherwise>
        <img border="0" src="/lenya/lenya/menu/images/authoring_inactive.gif" />
       </xsl:otherwise></xsl:choose>
     </a>
  -  <a target="_blank" href="{url-info/context-prefix}/{url-info/publication-id}/live{$document-url}">
  +  <a id="live-tab" target="_blank" href="{url-info/context-prefix}/{url-info/publication-id}/live{$document-url}">
       <img border="0" src="/lenya/lenya/menu/images/live_inactive.gif" />
     </a>
   </td>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-cvs-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-cvs-help@cocoon.apache.org


Mime
View raw message