aboutsummaryrefslogtreecommitdiff
path: root/html/haddock-util.js
diff options
context:
space:
mode:
authorSimon Marlow <simonmar@microsoft.com>2006-10-11 14:17:37 +0000
committerSimon Marlow <simonmar@microsoft.com>2006-10-11 14:17:37 +0000
commit5403a5af081b01916e1d94403f608051c377ee7f (patch)
tree7d8cc4a7f3acff9955f7b8a2fcaf745133aec615 /html/haddock-util.js
parente397ffd7c92eb81eb943d9843a8733014abdbbf7 (diff)
Rename haddock.js to haddock-util.js
haddock.js will be run automatically by Windows when you type 'haddock' if it is found on the PATH, so rename to avoid confusion. Spotted by Adrian Hey.
Diffstat (limited to 'html/haddock-util.js')
-rw-r--r--html/haddock-util.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/html/haddock-util.js b/html/haddock-util.js
new file mode 100644
index 00000000..4280d19c
--- /dev/null
+++ b/html/haddock-util.js
@@ -0,0 +1,15 @@
+// Haddock JavaScript utilities
+function toggle(button,id)
+{
+ var n = document.getElementById(id).style;
+ if (n.display == "none")
+ {
+ button.src = "minus.gif";
+ n.display = "block";
+ }
+ else
+ {
+ button.src = "plus.gif";
+ n.display = "none";
+ }
+}