1/**
2 * Javascript functionality for the DokuBook template
3 *
4 * @author Michael Klier <chi@chimeric.de>
5 */
6
7// attach the AJAX index to the sidebar index
8var sb_dw_index = jQuery('#left__index__tree').dw_tree({deferInit: true,
9    load_data: function  (show_sublist, $clicky) {
10        jQuery.post(
11            DOKU_BASE + 'lib/exe/ajax.php',
12            $clicky[0].search.substr(1) + '&call=index',
13            show_sublist, 'html'
14        );
15    }
16});
17jQuery(document).ready(function($) {
18    var $tree = jQuery('#sb__index__tree');
19    sb_dw_index.$obj = $tree;
20    sb_dw_index.init();
21
22// add TOC events
23//    jQuery(addSbLeftTocToggle);
24});
25
26