From ae0847c70a56822afe6efb866bc9ad43ebda82d0 Mon Sep 17 00:00:00 2001 From: Mark Lentczner Date: Tue, 17 Aug 2010 23:28:47 +0000 Subject: remove synopsis when in frames --- html/haddock-util.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'html') 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("Frames"); } + 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(); } -- cgit v1.2.3