You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

28 lines
701 B

  1. /**
  2. * Javascript for index view
  3. *
  4. * @author Gerrit Uitslag <klapinklapin@gmail.com>
  5. */
  6. jQuery(function () {
  7. jQuery('.indexmenu_nojs').each(function () {
  8. let $tree = jQuery(this);
  9. let jsajax = $tree.data('jsajax');
  10. $tree.dw_tree({
  11. toggle_selector: 'a.indexmenu_idx',
  12. load_data: function (show_sublist, $clicky) {
  13. jQuery.post(
  14. DOKU_BASE + 'lib/exe/ajax.php',
  15. 'call=indexmenu&req=index&nojs=1&' + $clicky[0].search.substring(1) + '&max=1' + decodeURIComponent(jsajax),
  16. show_sublist,
  17. 'html'
  18. );
  19. }
  20. });
  21. });
  22. });