This commit is contained in:
parent
16685ee743
commit
5cd6d253c1
6 changed files with 6 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"removeBookmark": "Remove bookmark from ${x}?",
|
||||
"defaultMargin": "Default",
|
||||
"noneMargin": "None",
|
||||
"minimalMargin": "Minimal",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"removeBookmark": "¿Eliminar marcador de ${x}?",
|
||||
"lockEdit": "Hacer que el documento sea de sólo lectura",
|
||||
"unlockEdit": "Hacer que el documento sea escribible",
|
||||
"defaultMargin": "Predeterminado",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"removeBookmark": "Supprimer le signet de ${x} ?",
|
||||
"lockEdit": "Rendre le document en lecture seule",
|
||||
"unlockEdit": "Rendre le document accessible en écriture",
|
||||
"defaultMargin": "Par défaut",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"removeBookmark": "移除 ${x} 中的書籤?",
|
||||
"lockEdit": "鎖定編輯",
|
||||
"unlockEdit": "解除鎖定",
|
||||
"defaultMargin": "默認",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"removeBookmark": "移除 ${x} 中的书签?",
|
||||
"lockEdit": "锁定编辑",
|
||||
"unlockEdit": "解除锁定",
|
||||
"defaultMargin": "默认",
|
||||
|
|
|
@ -68,7 +68,7 @@ export const openBookmarkMenu = (element: HTMLElement, event: MouseEvent, bookma
|
|||
label: window.siyuan.languages.remove,
|
||||
click: () => {
|
||||
const bookmarkText = element.querySelector(".b3-list-item__text").textContent;
|
||||
confirmDialog(window.siyuan.languages.deleteOpConfirm, `${window.siyuan.languages.confirmDelete} <b>${escapeHtml(bookmarkText)}</b>?`, () => {
|
||||
confirmDialog(window.siyuan.languages.deleteOpConfirm, window.siyuan.languages.removeBookmark.replace("${x}", `<b>${escapeHtml(bookmarkText)}</b>`), () => {
|
||||
if (id) {
|
||||
fetchPost("/api/attr/setBlockAttrs", {id, attrs: {bookmark: ""}}, () => {
|
||||
bookmarkObj.update();
|
||||
|
|
Loading…
Add table
Reference in a new issue