From 2c962fc8edbec789c7e259d0a334601638755463 Mon Sep 17 00:00:00 2001 From: Achim Gratz Date: Wed, 17 Aug 2011 17:49:56 +0200 Subject: [PATCH] Find title differently to allow it to reside in preamble * org-info-src.js: find the title heading via it's class property instead of relying on it to be the first heading in div content TINYCHANGE --- code/org-info-js/org-info-src.js | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/code/org-info-js/org-info-src.js b/code/org-info-js/org-info-src.js index 33faaac..59833f8 100644 --- a/code/org-info-js/org-info-src.js +++ b/code/org-info-js/org-info-src.js @@ -746,7 +746,7 @@ var org_html_manager = { // Move the title into the first visible section. // TODO: show title above everything if FIXED_TOC !!! - t.TITLE = t.PREA.getElementsByTagName("h1")[0]; + t.TITLE = document.getElementsByClassName("title")[0]; if(t.INNER_TITLE && !t.FIXED_TOC && t.VIEW != t.SLIDE_VIEW) { t.INNER_TITLE = t.TITLE.cloneNode(true); /* TODO: this is still based on wrong behaviour of browsers (same id for two elements) -- 1.7.6