优化体验

This commit is contained in:
Minho
2017-05-26 15:51:45 +08:00
parent bb9ba8c4b6
commit affd7b211e
3 changed files with 7 additions and 9 deletions

View File

@@ -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 }); }
// }
}); });

View File

@@ -53,6 +53,7 @@ $(function () {
} }
}); });
/** /**
* 实现标题栏操作 * 实现标题栏操作
*/ */

View File

@@ -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">