fixed toggle on IE
authorAndrew Tridgell <tridge@samba.org>
Sun, 10 Oct 2010 22:42:55 +0000 (09:42 +1100)
committerAndrew Tridgell <tridge@samba.org>
Sun, 10 Oct 2010 22:42:55 +0000 (09:42 +1100)
live/graphs.js
live/index.html

index 7a8bec6c77ef7d5ee8bdf9235b54db6ca5d4244a..415a724cecf79b86858b15ce3d9060f88699676b 100644 (file)
@@ -21,9 +21,7 @@ pvdate = new Date(midnight);
  */
 function heading(h) {
   if (!in_redraw) {
-    document.write("<h3>");
-    document.write("<a href=\"javascript:toggle_div('"+h+"')\" <img src='icons/icon_unhide_16.png' border='0' id='img:"+h+"'></a>");
-    document.write("&nbsp;"+h+"</h3>\n");    
+    document.write("<h3><a STYLE='text-decoration:none' href=\"javascript:toggle_div('"+h+"')\"><img src='icons/icon_unhide_16.png' border='0' id='img-"+h+"'></a>&nbsp;"+h+"</h3>");
   }
 }
 
@@ -681,7 +679,7 @@ function toggle_div(divname)
 {
   writeDebug("toggle: " + divname);
   div = document.getElementById(divname);
-  img = document.getElementById("img:" + divname);
+  img = document.getElementById("img-" + divname);
   current_display = div.style.display;
   old_src = img.getAttribute("src");
   if (current_display != "none") {
index b331a1697a6c21d4942cfe2b735c56eaeb52adea..91a1bed60362acfcbe9d8589f6ce27392c02805e 100755 (executable)
@@ -26,7 +26,7 @@
     install</a>. The raw data is collected once a minute using
     the <a href="../webbox/sma-data.py">sma-data.py</a> script, and is
     displayed using <a href="http://danvk.org/dygraphs/">dygraphs</a>
-    and <a href="graphs.js">some javascript</a><p>
+    and <a href="graphs.js">some javascript</a></p>
 
 <!--[if IE]>
 <p>Note! You are using Internet Explorer to view this site. Internet