diff options
| author | Sebastian Meric de Bellefon <Sebastian.MericdeBellefon@tritondigital.com> | 2016-05-24 17:36:34 -0400 | 
|---|---|---|
| committer | Sebastian Meric de Bellefon <Sebastian.MericdeBellefon@tritondigital.com> | 2016-05-24 22:03:55 -0400 | 
| commit | 474a0c182d6ef9a7e93e277a2755d04d943059a0 (patch) | |
| tree | 1bad321608bbeea28ec4a268620ef1fd94f060e1 /haddock-api/resources/html/haddock-util.js | |
| parent | 6db811aefb9cba65c8efe3876e850c813f280b6c (diff) | |
remove framed view of the HTML documentation (see #114 and #274)
Frames are a bit broken, ignored by Hackage, and considered obsolete in general.
This patch disables frames generation. The mini_*.html files are still used in the synopsis.
Diffstat (limited to 'haddock-api/resources/html/haddock-util.js')
| -rw-r--r-- | haddock-api/resources/html/haddock-util.js | 28 | 
1 files changed, 0 insertions, 28 deletions
diff --git a/haddock-api/resources/html/haddock-util.js b/haddock-api/resources/html/haddock-util.js index fc7743fe..92d07d2a 100644 --- a/haddock-api/resources/html/haddock-util.js +++ b/haddock-api/resources/html/haddock-util.js @@ -248,33 +248,6 @@ function addMenuItem(html) {    }  } -function adjustForFrames() { -  var bodyCls; - -  if (parent.location.href == window.location.href) { -    // not in frames, so add Frames button -    addMenuItem("<a href='#' onclick='reframe();return true;'>Frames</a>"); -    bodyCls = "no-frame"; -  } -  else { -    bodyCls = "in-frame"; -  } -  addClass(document.body, bodyCls); -} - -function reframe() { -  setCookie("haddock-reframe", document.URL); -  window.location = "frames.html"; -} - -function postReframe() { -  var s = getCookie("haddock-reframe"); -  if (s) { -    parent.window.main.location = s; -    clearCookie("haddock-reframe"); -  } -} -  function styles() {    var i, a, es = document.getElementsByTagName("link"), rs = [];    for (i = 0; a = es[i]; i++) { @@ -337,7 +310,6 @@ function styleMenu(show) {  function pageLoad() {    addStyleMenu(); -  adjustForFrames();    resetStyle();    restoreCollapsed();  }  | 
