mirror of
https://github.com/mindoc-org/mindoc.git
synced 2026-02-27 17:03:57 +08:00
优化体验
This commit is contained in:
@@ -198,10 +198,9 @@ $(function () {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// var $node = window.jsTree.jstree().get_selected();
|
var $node = window.jsTree.jstree().get_selected();
|
||||||
//
|
if(typeof $node === "object") {
|
||||||
// if(typeof $node === "object") {
|
$node = window.jsTree.jstree().get_node({ id : $node[0] });
|
||||||
// $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 });
|
||||||
// events.trigger('article.open',{ $url : $node.a_attr.href , $init : false, $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="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 class="clearfix"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="manual-tree" id="sidebar">
|
<div class="manual-tree" id="sidebar"> </div>
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="manual-editor-container" id="manualEditorContainer">
|
<div class="manual-editor-container" id="manualEditorContainer">
|
||||||
<div class="manual-editormd">
|
<div class="manual-editormd">
|
||||||
|
|||||||
Reference in New Issue
Block a user