diff options
author | Andreas Gohr <andi@splitbrain.org> | 2005-12-10 20:37:09 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2005-12-10 20:37:09 +0100 |
commit | 00540a38be97858e71163f53dddf8dee53185b1d (patch) | |
tree | b59b8c1c5943804090e4f07eed708e658d78805b /inc/parser/xhtml.php | |
parent | 0a6ead412a67d6ce56895e3c5e8dd6612acac398 (diff) | |
download | rpg-00540a38be97858e71163f53dddf8dee53185b1d.tar.gz rpg-00540a38be97858e71163f53dddf8dee53185b1d.tar.bz2 |
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
Diffstat (limited to 'inc/parser/xhtml.php')
-rw-r--r-- | inc/parser/xhtml.php | 5 |
1 files changed, 2 insertions, 3 deletions
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 .= '<div class="toc">'.DOKU_LF; - $this->doc .= '<div class="tocheader">'; - $this->doc .= ' <script type="text/javascript">showTocToggle("+","-")</script>'; + $this->doc .= '<div class="tocheader" id="toc__header">'; $this->doc .= $lang['toc']; $this->doc .= '</div>'.DOKU_LF; - $this->doc .= '<div id="tocinside">'.DOKU_LF; + $this->doc .= '<div id="toc__inside">'.DOKU_LF; } function tocbranch_open($level) { |