File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -316,10 +316,11 @@ dTree.prototype.node = function (node, nodeId) {
316
316
( node . hns ) ? str += node . hns : str += node . dokuid ;
317
317
str += '"' + ' title="' + node . name + '"' + jsfnc ;
318
318
str += ' onclick="javascript: ' + this . treeName + '.s(' + nodeId + ');"' ;
319
+ str += ' data-wiki-id="' + node . dokuid + '"' ;
319
320
str += '>' + node . name + '</a>' ;
320
321
}
321
322
else if ( node . pid !== this . root . id ) {
322
- str += '<a id="s' + this . treeName + nodeId + '" href="javascript: ' + this . treeName + '.o(' + nodeId + '); " class="node"' + jsfnc + '>' + node . name + '</a>' ;
323
+ str += '<a id="s' + this . treeName + nodeId + '" href="javascript: ' + this . treeName + '.o(' + nodeId + '); " data-wiki-id="' + node . dokuid + '" class="node"' + jsfnc + '>' + node . name + '</a>' ;
323
324
} else {
324
325
str += node . name ;
325
326
}
Original file line number Diff line number Diff line change @@ -851,7 +851,7 @@ public function formatIndexmenuItem($item)
851
851
if ($ markCurrentPage ) {
852
852
$ ret .= '<span class="curid"> ' ;
853
853
}
854
- $ ret .= '<a href=" ' . wl ($ link , $ more ) . '" class=" ' . $ tagid . '"> '
854
+ $ ret .= '<a href=" ' . wl ($ link , $ more ) . '" class=" ' . $ tagid . '" data-wiki-id=" ' . $ item [ ' hns ' ] . ' " > '
855
855
. $ item ['title ' ]
856
856
. '</a> ' ;
857
857
if ($ markCurrentPage ) {
You can’t perform that action at this time.
0 commit comments