xref: /dokuwiki/lib/scripts/index.js (revision 9ee7fd095e8cb3c84ad95dd52c35630147333ecb)
1/*jslint white: true, onevar: true, undef: true, nomen: true, eqeqeq: true, plusplus: true, bitwise: true, regexp: false, newcap: true, immed: true */
2/*global jQuery, window, DOKU_BASE, DEPRECATED, bind*/
3
4var dw_index = jQuery('#index__tree').dw_tree({deferInit: true,
5    load_data: function  (show_sublist, $clicky) {
6        jQuery.post(
7            DOKU_BASE + 'lib/exe/ajax.php',
8            $clicky[0].search.substr(1) + '&call=index',
9            show_sublist, 'html'
10        );
11    }
12});
13jQuery(function () {
14    var $tree = jQuery('#index__tree');
15
16    dw_index.$obj = $tree;
17
18    dw_index.init();
19});
20