Skip to content

Commit

Permalink
Merge pull request #292 from eduardomozart/patch-4
Browse files Browse the repository at this point in the history
Add data-wiki-id attr to Fancytree (Treenew)
  • Loading branch information
Klap-in authored Feb 1, 2024
2 parents d5a8614 + cf28633 commit 6347611
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ jQuery(function(){ // on page load
if(node.data.hnsNotExisting) {
cls = ' class="wikilink2"';
}
data.$title.html("<a href='" + node.data.url + "'"+cls+">" + node.title + "</a>");
data.$title.html("<a href='" + node.data.url + "'"+cls+" data-wiki-id='" + node.key + "'>" + node.title + "</a>");
}
},
//retrieve initial data
Expand Down

0 comments on commit 6347611

Please sign in to comment.