website_jukni/dokuwiki/lib/scripts/index.js
2017-12-29 15:51:59 +01:00

16 lines
406 B
JavaScript

var dw_index = jQuery('#index__tree').dw_tree({deferInit: true,
load_data: function (show_sublist, $clicky) {
jQuery.post(
DOKU_BASE + 'lib/exe/ajax.php',
$clicky[0].search.substr(1) + '&call=index',
show_sublist, 'html'
);
}
});
jQuery(function () {
var $tree = jQuery('#index__tree');
dw_index.$obj = $tree;
dw_index.init();
});