diff options
author | Mark Lentczner <markl@glyphic.com> | 2010-08-17 23:28:47 +0000 |
---|---|---|
committer | Mark Lentczner <markl@glyphic.com> | 2010-08-17 23:28:47 +0000 |
commit | ae0847c70a56822afe6efb866bc9ad43ebda82d0 (patch) | |
tree | c25fc74212fadc4b458e22c9ca8a3179a9bbdc78 /html/haddock-util.js | |
parent | b94958fdb1af368d13c7427cd04a9547874f4b69 (diff) |
remove synopsis when in frames
Diffstat (limited to 'html/haddock-util.js')
-rw-r--r-- | html/haddock-util.js | 10 |
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(); } |