graph: replace the blinking no javascript message
authorBenoit Allard <benoit@aeteurope.nl>
Sat, 18 Oct 2008 16:09:07 +0200
changeset 7124 63579aa36c8e
parent 7123 716277f5867e
child 7125 4a1ac535be1d
graph: replace the blinking no javascript message
templates/coal/graph.tmpl
templates/gitweb/graph.tmpl
templates/graph.tmpl
tests/test-hgweb-commands.out
--- a/templates/coal/graph.tmpl	Sat Oct 18 15:49:15 2008 +0200
+++ b/templates/coal/graph.tmpl	Sat Oct 18 16:09:07 2008 +0200
@@ -40,7 +40,7 @@
 | {changenav%navgraphentry}
 </div>
 
-<div id="noscript">The revision graph only works with JavaScript-enabled browsers.</div>
+<noscript>The revision graph only works with JavaScript-enabled browsers.</noscript>
 
 <div id="wrapper">
 <ul id="nodebgs"></ul>
@@ -52,8 +52,6 @@
 <script type="text/javascript">
 <!-- hide script content
 
-document.getElementById('noscript').style.display = 'none';
-
 var data = {jsdata|json};
 var graph = new Graph();
 graph.scale({bg_height});
--- a/templates/gitweb/graph.tmpl	Sat Oct 18 15:49:15 2008 +0200
+++ b/templates/gitweb/graph.tmpl	Sat Oct 18 16:09:07 2008 +0200
@@ -32,7 +32,7 @@
 
 <div class="title">&nbsp;</div>
 
-<div id="noscript">The revision graph only works with JavaScript-enabled browsers.</div>
+<noscript>The revision graph only works with JavaScript-enabled browsers.</noscript>
 
 <div id="wrapper">
 <ul id="nodebgs"></ul>
@@ -44,8 +44,6 @@
 <script>
 <!-- hide script content
 
-document.getElementById('noscript').style.display = 'none';
-
 var data = {jsdata|json};
 var graph = new Graph();
 graph.scale({bg_height});
--- a/templates/graph.tmpl	Sat Oct 18 15:49:15 2008 +0200
+++ b/templates/graph.tmpl	Sat Oct 18 16:09:07 2008 +0200
@@ -26,7 +26,7 @@
 </p>
 </form>
 
-<div id="noscript">The revision graph only works with JavaScript-enabled browsers.</div>
+<noscript>The revision graph only works with JavaScript-enabled browsers.</noscript>
 
 <div id="wrapper">
 <ul id="nodebgs"></ul>
@@ -38,8 +38,6 @@
 <script type="text/javascript">
 <!-- hide script content
 
-document.getElementById('noscript').style.display = 'none';
-
 var data = {jsdata|json};
 var graph = new Graph();
 graph.scale({bg_height});
Binary file tests/test-hgweb-commands.out has changed