Changeset 530

Show
Ignore:
Timestamp:
08/23/08 20:36:11 (5 months ago)
Author:
adrian
Message:

trac devbar was always showing up -- fixed broken if clause to catch proper cases for displaying it

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/tractheme/orbited_trac_theme/templates/orbited_theme.html

    r529 r530  
    5959  // so we'll just duplicate the if clause 
    6060  if (document.location.pathname != '/') { 
     61      if (document.location.pathname.slice(0,6) != '/wiki/') {   
    6162      document.getElementById("metanav").style.display = "block" 
    6263      document.getElementById("mainnav").style.display = "block" 
    6364      document.getElementById("ctxtnav").style.display = "block" 
     65          } 
    6466  }   
    6567  if (document.location.pathname.slice(0,6) != '/wiki/') {   
    66       document.getElementById("metanav").style.display = "block" 
    67       document.getElementById("mainnav").style.display = "block" 
    68       document.getElementById("ctxtnav").style.display = "block"   
     68      if (document.location.pathname != '/') { 
     69        document.getElementById("metanav").style.display = "block" 
     70        document.getElementById("mainnav").style.display = "block" 
     71        document.getElementById("ctxtnav").style.display = "block"   
     72          } 
    6973  } 
    7074  /* we want to be able to download the source in other formats in some cases */