MCPcopy Index your code
hub / github.com/TruthHun/BookStack / openCreateCatalogDialog

Function openCreateCatalogDialog

static/js/editor.js:45–53  ·  view source on GitHub ↗

* 创建文档

($node)

Source from the content-addressed store, hash-verified

43 * 创建文档
44 */
45function openCreateCatalogDialog($node) {
46 var $then = $("#addDocumentModal");
47
48 var doc_id = $node ? $node.id : 0;
49
50 $then.find("input[name='parent_id']").val(doc_id);
51
52 $then.modal("show");
53}
54
55/**
56 * 处理排序

Callers 2

markdown.jsFile · 0.85
html-editor.jsFile · 0.85

Calls 1

$Function · 0.50

Tested by

no test coverage detected