mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-09-18 17:48:00 +08:00
优化体验
This commit is contained in:
@@ -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 () {
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
/**
|
||||
* 实现标题栏操作
|
||||
*/
|
||||
|
Reference in New Issue
Block a user