From 00540a38be97858e71163f53dddf8dee53185b1d Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Sat, 10 Dec 2005 20:37:09 +0100 Subject: unobstrusive JS for TOC, better onload handling This path adds more unobstrusive JavaScript for the TOC handling. It also loads JavaScript initialiezers as soon as the DOM is parsed for Mozilla-based Browsers as described at http://dean.edwards.name/weblog/2005/09/busted/ - a IE solution was not chosen yet. darcs-hash:20051210193709-7ad00-771461e56d9661caf9ca733a6d617f009e24d0b7.gz --- inc/parser/xhtml.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'inc') diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php index f6dcbc038..73c2ada1c 100644 --- a/inc/parser/xhtml.php +++ b/inc/parser/xhtml.php @@ -86,11 +86,10 @@ class Doku_Renderer_xhtml extends Doku_Renderer { function toc_open() { global $lang; $this->doc .= '
'.DOKU_LF; - $this->doc .= '
'; - $this->doc .= ' '; + $this->doc .= '
'; $this->doc .= $lang['toc']; $this->doc .= '
'.DOKU_LF; - $this->doc .= '
'.DOKU_LF; + $this->doc .= '
'.DOKU_LF; } function tocbranch_open($level) { -- cgit v1.2.3