MCPcopy Create free account
hub / github.com/TruthHun/BookStack / selectedNodeById

Function selectedNodeById

static/js/markdown.js:552–560  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

550 * 选中节点,id表示文档的id或者identify
551 * */
552 function selectedNodeById(id){
553 $.each(window.documentCategory,function () {
554 if(id == this.id || id==this.identify) {
555 window.treeCatalog.deselect_all();
556 window.treeCatalog.select_node(this);
557 return false;
558 }
559 });
560 }
561 function selectedNode(node){
562 window.treeCatalog.deselect_all();
563 window.treeCatalog.select_node(node);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected