mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-09-20 02:37:59 +08:00
feat:1、实现空节点功能,当文档标记为空目录时不加载内容页无法编辑内容
2、实现HTTP接口方式登录, 3、优化markdown编辑器部分功能
This commit is contained in:
@@ -199,7 +199,12 @@ $(function () {
|
||||
"multiple" : false,
|
||||
'animation' : 0
|
||||
}
|
||||
}).on('select_node.jstree', function (node, selected, event) {
|
||||
}).on('select_node.jstree', function (node, selected) {
|
||||
//如果是空目录则直接出发展开下一级功能
|
||||
if (selected.node.a_attr && selected.node.a_attr.disabled) {
|
||||
selected.instance.toggle_node(selected.node);
|
||||
return false
|
||||
}
|
||||
$(".m-manual").removeClass('manual-mobile-show-left');
|
||||
loadDocument(selected.node.a_attr.href, selected.node.id,selected.node.a_attr['data-version']);
|
||||
});
|
||||
|
Reference in New Issue
Block a user