mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-04-05 20:17:53 +08:00
优化体验
This commit is contained in:
parent
bb9ba8c4b6
commit
affd7b211e
@ -198,10 +198,9 @@ $(function () {
|
||||
}
|
||||
};
|
||||
|
||||
// var $node = window.jsTree.jstree().get_selected();
|
||||
//
|
||||
// if(typeof $node === "object") {
|
||||
// $node = window.jsTree.jstree().get_node({ id : $node[0] });
|
||||
// events.trigger('article.open',{ $url : $node.a_attr.href , $init : false, $id : $node.a_attr.id });
|
||||
// }
|
||||
var $node = window.jsTree.jstree().get_selected();
|
||||
if(typeof $node === "object") {
|
||||
$node = window.jsTree.jstree().get_node({ id : $node[0] });
|
||||
events.trigger('article.open',{ $url : $node.a_attr.href , $init : true, $id : $node.a_attr.id });
|
||||
}
|
||||
});
|
@ -53,6 +53,7 @@ $(function () {
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
/**
|
||||
* 实现标题栏操作
|
||||
*/
|
||||
|
@ -109,9 +109,7 @@
|
||||
<div class="nav-plus pull-right" id="btnAddDocument" data-toggle="tooltip" data-title="创建目录" data-direction="right"><i class="fa fa-plus" aria-hidden="true"></i></div>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
<div class="manual-tree" id="sidebar">
|
||||
|
||||
</div>
|
||||
<div class="manual-tree" id="sidebar"> </div>
|
||||
</div>
|
||||
<div class="manual-editor-container" id="manualEditorContainer">
|
||||
<div class="manual-editormd">
|
||||
|
Loading…
Reference in New Issue
Block a user