Skip to content
Snippets Groups Projects
Commit ae0847c7 authored by Mark Lentczner's avatar Mark Lentczner
Browse files

remove synopsis when in frames

parent b94958fd
No related branches found
No related tags found
No related merge requests found
...@@ -211,10 +211,16 @@ function addMenuItem(html) { ...@@ -211,10 +211,16 @@ function addMenuItem(html) {
} }
} }
function addFramesButton() { function adjustForFrames() {
if (parent.location.href == window.location.href) { if (parent.location.href == window.location.href) {
// not in frames, so add Frames button
addMenuItem("<a href='#' onclick='reframe();return true;'>Frames</a>"); 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() { function reframe() {
...@@ -282,7 +288,7 @@ function styleMenu(show) { ...@@ -282,7 +288,7 @@ function styleMenu(show) {
function pageLoad() { function pageLoad() {
addStyleMenu(); addStyleMenu();
addFramesButton(); adjustForFrames();
resetStyle(); resetStyle();
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment