forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nicola...@apache.org
Subject cvs commit: xml-forrest/src/core/context/skins/common/scripts breadcrumbs-optimized.js breadcrumbs.js
Date Mon, 24 Nov 2003 12:55:00 GMT
nicolaken    2003/11/24 04:55:00

  Modified:    src/core/context/skins/common/scripts
                        breadcrumbs-optimized.js breadcrumbs.js
  Log:
  Do not show the links if they have not been filtered.
  
  Revision  Changes    Path
  1.2       +9 -2      xml-forrest/src/core/context/skins/common/scripts/breadcrumbs-optimized.js
  
  Index: breadcrumbs-optimized.js
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/core/context/skins/common/scripts/breadcrumbs-optimized.js,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- breadcrumbs-optimized.js	20 Oct 2003 16:29:05 -0000	1.1
  +++ breadcrumbs-optimized.js	24 Nov 2003 12:54:59 -0000	1.2
  @@ -1,6 +1,13 @@
   var PREPREND_CRUMBS=new Array();
  -PREPREND_CRUMBS.push(new Array("Apache","http://www.apache.org/"));
  -PREPREND_CRUMBS.push(new Array("Jakarta","http://jakarta.apache.org/"));
  +var link1="@skinconfig.trail.link1.name@";
  +var link2="@skinconfig.trail.link2.name@";
  +var link3="@skinconfig.trail.link3.name@";
  +if(!(link1=="")&&!link1.indexOf( "@" ) == 0){
  +  PREPREND_CRUMBS.push( new Array( link1, @skinconfig.trail.link1.href@ ) ); }
  +if(!(link2=="")&&!link2.indexOf( "@" ) == 0){
  +  PREPREND_CRUMBS.push( new Array( link2, @skinconfig.trail.link2.href@ ) ); }
  +if(!(link3=="")&&!link3.indexOf( "@" ) == 0){
  +  PREPREND_CRUMBS.push( new Array( link3, @skinconfig.trail.link3.href@ ) ); }
   var DISPLAY_SEPARATOR=" > ";
   var DISPLAY_PREPREND="";
   var DISPLAY_POSTPREND=":";
  
  
  
  1.2       +15 -6     xml-forrest/src/core/context/skins/common/scripts/breadcrumbs.js
  
  Index: breadcrumbs.js
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/core/context/skins/common/scripts/breadcrumbs.js,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- breadcrumbs.js	20 Oct 2003 16:29:05 -0000	1.1
  +++ breadcrumbs.js	24 Nov 2003 12:54:59 -0000	1.2
  @@ -83,14 +83,23 @@
    * you use this script (you can leave it as an empty array if you wish)
    */
   var PREPREND_CRUMBS = new Array();
  -   if(!("@skinconfig.trail.link1.name@"=="")){
  -     PREPREND_CRUMBS.push( new Array( "@skinconfig.trail.link1.name@", "@skinconfig.trail.link1.href@"
) );
  +
  +var link1 = "@skinconfig.trail.link1.name@";
  +var link2 = "@skinconfig.trail.link2.name@";
  +var link3 = "@skinconfig.trail.link3.name@";
  +
  +var href1 = "@skinconfig.trail.link1.href@";
  +var href2 = "@skinconfig.trail.link2.href@";
  +var href3 = "@skinconfig.trail.link3.href@";
  +
  +   if(!(link1=="")&&!link1.indexOf( "@" ) == 0){
  +     PREPREND_CRUMBS.push( new Array( link1, href1 ) );
      }
  -   if(!("@skinconfig.trail.link2.name@"=="")){
  -     PREPREND_CRUMBS.push( new Array( "@skinconfig.trail.link2.name@", "@skinconfig.trail.link2.href@"
) );
  +   if(!(link2=="")&&!link2.indexOf( "@" ) == 0){
  +     PREPREND_CRUMBS.push( new Array( link2, href2 ) );
      }
  -   if(!("@skinconfig.trail.link3.name@"=="")){
  -     PREPREND_CRUMBS.push( new Array( "@skinconfig.trail.link3.name@", "@skinconfig.trail.link3.href@"
) );
  +   if(!(link3=="")&&!link3.indexOf( "@" ) == 0){
  +     PREPREND_CRUMBS.push( new Array( link3, href3 ) );
      }
   
   /**
  
  
  

Mime
View raw message