Mercurial > hg > mercurial-source
diff templates/gitweb/graph.tmpl @ 6729:855851eae70f
graph: improve script hiding tricks
author | Dirkjan Ochtman <dirkjan@ochtman.nl> |
---|---|
date | Tue, 24 Jun 2008 10:18:03 +0200 (2008-06-24) |
parents | 84294e3710b8 |
children | 936a9073bb73 |
line wrap: on
line diff
--- a/templates/gitweb/graph.tmpl +++ b/templates/gitweb/graph.tmpl @@ -42,8 +42,9 @@ <script type="text/javascript" src="#staticurl#graph.js"></script> <script> +<!-- hide script content -document.getElementById('noscript').style.visibility = 'hidden'; +document.getElementById('noscript').style.display = 'none'; data = {jsdata|json}; graph = new Graph(); @@ -107,6 +108,8 @@ } graph.render(data); + +// stop hiding script --> </script> <div class="page_nav">