From mboxrd@z Thu Jan 1 00:00:00 1970 From: Achim Gratz Subject: Re: Org-Mode Homepage error Date: Wed, 17 Aug 2011 18:50:08 +0200 Message-ID: <87sjp07zjz.fsf@Rainer.invalid> References: <2152B3DFC552DE47A0A36CCC93D735310439FF32@mx01.ecoplan.local> <874o2ai1up.fsf@googlemail.com> <4524.1311625834@alphaville.americas.hpqcorp.net> <87oc0ihwvk.fsf@gnu.org> <80bowhxlpz.fsf@somewhere.org> <87mxg1ozgc.fsf@gnu.org> <87vcupdobh.fsf@Rainer.invalid> <87pqkvpr1u.fsf@altern.org> <87r556uz2f.fsf@Rainer.invalid> <8739h1i0cb.fsf@gnu.org> <871uwk9gio.fsf@Rainer.invalid> <8739h0nh9k.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([140.186.70.92]:44590) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QtjKE-0007OX-04 for emacs-orgmode@gnu.org; Wed, 17 Aug 2011 12:50:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QtjKA-0000gC-J1 for emacs-orgmode@gnu.org; Wed, 17 Aug 2011 12:50:41 -0400 Received: from lo.gmane.org ([80.91.229.12]:50930) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QtjKA-0000g3-7y for emacs-orgmode@gnu.org; Wed, 17 Aug 2011 12:50:38 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QtjK4-0004z7-La for emacs-orgmode@gnu.org; Wed, 17 Aug 2011 18:50:32 +0200 Received: from p57aac99b.dip.t-dialin.net ([87.170.201.155]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 17 Aug 2011 18:50:32 +0200 Received: from Stromeko by p57aac99b.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 17 Aug 2011 18:50:32 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Bastien writes: > Thanks for this -- it does not apply, though. Make sure you > pulled the lastest version of Worg, see commit cd473c26: > > cd473c26 * Test update of org-infojs > > This was a test I did. Since the version of org-info-js in Worg is > *not* the version on http://orgmode.org/ changes here do not affect > org-info-js users. Here's the new patch. --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-Find-title-differently-to-allow-it-to-reside-in-prea.patch >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 --=-=-= Content-Type: text/plain Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ Factory and User Sound Singles for Waldorf Blofeld: http://Synth.Stromeko.net/Downloads.html#WaldorfSounds --=-=-=--