1
0
Fork 0

Adding indexmenu version 2024-01-05 (ed06f21).

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2024-12-01 20:38:26 +01:00
parent 92cc8375f2
commit f339727d60
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
766 changed files with 83299 additions and 0 deletions

View file

@ -0,0 +1,27 @@
/**
* Javascript for index view
*
* @author Gerrit Uitslag <klapinklapin@gmail.com>
*/
jQuery(function () {
jQuery('.indexmenu_nojs').each(function () {
let $tree = jQuery(this);
let jsajax = $tree.data('jsajax');
$tree.dw_tree({
toggle_selector: 'a.indexmenu_idx',
load_data: function (show_sublist, $clicky) {
jQuery.post(
DOKU_BASE + 'lib/exe/ajax.php',
'call=indexmenu&req=index&nojs=1&' + $clicky[0].search.substring(1) + '&max=1' + decodeURIComponent(jsajax),
show_sublist,
'html'
);
}
});
});
});