[PATCH] graph: made the blinking "Javascript needed" static

Benoît Allard benoit at aeteurope.nl
Tue Oct 7 09:42:36 CDT 2008


Former message could be replaced by "Calculating graph...", but it is 
not enough long to be relevant.

# HG changeset patch
# User Benoit Allard <benoit at aeteurope.nl>
# Date 1223390152 -7200
# Node ID 69d891fffcd26848dea6f474bc87fc9eb6ae1cd9
# Parent  070d038a50c52cedcdc8209895237744a045ce13
graph: removed the blinking No Javascript

diff -r 070d038a50c5 -r 69d891fffcd2 templates/coal/graph.tmpl
--- a/templates/coal/graph.tmpl	Sun Oct 05 21:35:26 2008 +0200
+++ b/templates/coal/graph.tmpl	Tue Oct 07 16:35:52 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>
@@ -51,8 +51,6 @@
  <script type="text/javascript" src="{staticurl}graph.js"></script>
  <script type="text/javascript">
  <!-- hide script content
-
-document.getElementById('noscript').style.display = 'none';

  var data = {jsdata|json};
  var graph = new Graph();
diff -r 070d038a50c5 -r 69d891fffcd2 templates/gitweb/graph.tmpl
--- a/templates/gitweb/graph.tmpl	Sun Oct 05 21:35:26 2008 +0200
+++ b/templates/gitweb/graph.tmpl	Tue Oct 07 16:35:52 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>
@@ -43,8 +43,6 @@
  <script type="text/javascript" src="#staticurl#graph.js"></script>
  <script>
  <!-- hide script content
-
-document.getElementById('noscript').style.display = 'none';

  var data = {jsdata|json};
  var graph = new Graph();
diff -r 070d038a50c5 -r 69d891fffcd2 templates/graph.tmpl
--- a/templates/graph.tmpl	Sun Oct 05 21:35:26 2008 +0200
+++ b/templates/graph.tmpl	Tue Oct 07 16:35:52 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>
@@ -37,8 +37,6 @@
  <script type="text/javascript" src="#staticurl#graph.js"></script>
  <script type="text/javascript">
  <!-- hide script content
-
-document.getElementById('noscript').style.display = 'none';

  var data = {jsdata|json};
  var graph = new Graph();
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 4197 bytes
Desc: S/MIME Cryptographic Signature
Url : http://selenic.com/pipermail/mercurial-devel/attachments/20081007/2aee72f7/attachment.bin 


More information about the Mercurial-devel mailing list