aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Lentczner <markl@glyphic.com>2010-08-17 23:28:47 +0000
committerMark Lentczner <markl@glyphic.com>2010-08-17 23:28:47 +0000
commitae0847c70a56822afe6efb866bc9ad43ebda82d0 (patch)
treec25fc74212fadc4b458e22c9ca8a3179a9bbdc78
parentb94958fdb1af368d13c7427cd04a9547874f4b69 (diff)
remove synopsis when in frames
-rw-r--r--html/haddock-util.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/html/haddock-util.js b/html/haddock-util.js
index e9e4f64d..92974417 100644
--- a/html/haddock-util.js
+++ b/html/haddock-util.js
@@ -211,10 +211,16 @@ function addMenuItem(html) {
}
}
-function addFramesButton() {
+function adjustForFrames() {
if (parent.location.href == window.location.href) {
+ // not in frames, so add Frames button
addMenuItem("<a href='#' onclick='reframe();return true;'>Frames</a>");
}
+ else {
+ // in frames, remove synopsis
+ var syn = document.getElementById("synopsis");
+ if (syn) { syn.parentNode.removeChild(syn); }
+ }
}
function reframe() {
@@ -282,7 +288,7 @@ function styleMenu(show) {
function pageLoad() {
addStyleMenu();
- addFramesButton();
+ adjustForFrames();
resetStyle();
}