mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 00:50:13 +01:00
This commit is contained in:
parent
3150c05739
commit
6f19d6b653
1 changed files with 2 additions and 2 deletions
|
|
@ -153,7 +153,7 @@ export class Breadcrumb {
|
||||||
if (cursorNodeElement) {
|
if (cursorNodeElement) {
|
||||||
id = cursorNodeElement.getAttribute("data-node-id");
|
id = cursorNodeElement.getAttribute("data-node-id");
|
||||||
}
|
}
|
||||||
fetchPost("/api/block/getTreeStat", {id: id || protyle.block.id}, (response) => {
|
fetchPost("/api/block/getTreeStat", {id: id || (protyle.block.showAll ? protyle.block.id : protyle.block.rootID)}, (response) => {
|
||||||
window.siyuan.menus.menu.remove();
|
window.siyuan.menus.menu.remove();
|
||||||
if (!protyle.contentElement.classList.contains("fn__none") && !protyle.disabled) {
|
if (!protyle.contentElement.classList.contains("fn__none") && !protyle.disabled) {
|
||||||
let uploadHTML = "";
|
let uploadHTML = "";
|
||||||
|
|
@ -337,7 +337,7 @@ export class Breadcrumb {
|
||||||
type: "submenu",
|
type: "submenu",
|
||||||
submenu: editSubmenu
|
submenu: editSubmenu
|
||||||
}).element);
|
}).element);
|
||||||
window.siyuan.menus.menu.append(exportMd(protyle.block.id));
|
window.siyuan.menus.menu.append(exportMd(protyle.block.showAll ? protyle.block.id : protyle.block.rootID));
|
||||||
window.siyuan.menus.menu.append(new MenuItem({type: "separator"}).element);
|
window.siyuan.menus.menu.append(new MenuItem({type: "separator"}).element);
|
||||||
window.siyuan.menus.menu.append(new MenuItem({
|
window.siyuan.menus.menu.append(new MenuItem({
|
||||||
iconHTML: Constants.ZWSP,
|
iconHTML: Constants.ZWSP,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue