This commit is contained in:
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+3
-3
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"generatedAt": "2026-08-09T14:43:26.286Z",
|
"generatedAt": "2026-08-09T16:06:38.844Z",
|
||||||
"files": {
|
"files": {
|
||||||
"css/style.css": {
|
"css/style.css": {
|
||||||
"dist": "dist/style.min.css",
|
"dist": "dist/style.min.css",
|
||||||
@@ -63,8 +63,8 @@
|
|||||||
},
|
},
|
||||||
"js/custom_views.js": {
|
"js/custom_views.js": {
|
||||||
"dist": "dist/custom_views.min.js",
|
"dist": "dist/custom_views.min.js",
|
||||||
"hash": "61de59908cac",
|
"hash": "c75b57f364bc",
|
||||||
"size": 132471
|
"size": 132425
|
||||||
},
|
},
|
||||||
"js/awesomplete.min.js": {
|
"js/awesomplete.min.js": {
|
||||||
"dist": "dist/awesomplete.min.js",
|
"dist": "dist/awesomplete.min.js",
|
||||||
|
|||||||
@@ -1104,7 +1104,7 @@ function refreshBackgroundPalettes() {
|
|||||||
if (!noteId) return;
|
if (!noteId) return;
|
||||||
|
|
||||||
const actions = card.querySelector(".link-actions");
|
const actions = card.querySelector(".link-actions");
|
||||||
const editLink = actions ? actions.querySelector('a[title=window.ShaarliProI18n.t("Edit")], a[aria-label="Modifier ce bookmark"], a[href*="/admin/shaare/"]') : null;
|
const editLink = actions ? actions.querySelector(`a[title="${window.ShaarliProI18n.t("Edit")}"], a[href*="/admin/shaare/"]`) : null;
|
||||||
|
|
||||||
palettePopup.innerHTML = generateBookmarkPaletteButtons(noteId, editLink && editLink.href ? editLink.href : "#", getElementVisualColor(card), getElementVisualBackground(card));
|
palettePopup.innerHTML = generateBookmarkPaletteButtons(noteId, editLink && editLink.href ? editLink.href : "#", getElementVisualColor(card), getElementVisualBackground(card));
|
||||||
});
|
});
|
||||||
@@ -1859,7 +1859,7 @@ function initBookmarkPaletteButtons() {
|
|||||||
if (!actions) return;
|
if (!actions) return;
|
||||||
if (actions.querySelector(".bookmark-palette")) return;
|
if (actions.querySelector(".bookmark-palette")) return;
|
||||||
|
|
||||||
const editLink = actions.querySelector('a[title=window.ShaarliProI18n.t("Edit")], a[aria-label="Modifier ce bookmark"], a[href*="/admin/shaare/"]');
|
const editLink = actions.querySelector(`a[title="${window.ShaarliProI18n.t("Edit")}"], a[href*="/admin/shaare/"]`);
|
||||||
if (!editLink || !editLink.href) return;
|
if (!editLink || !editLink.href) return;
|
||||||
const editUrl = editLink.href;
|
const editUrl = editLink.href;
|
||||||
|
|
||||||
@@ -1868,10 +1868,10 @@ function initBookmarkPaletteButtons() {
|
|||||||
wrapper.className = "bookmark-palette";
|
wrapper.className = "bookmark-palette";
|
||||||
wrapper.style.position = "relative";
|
wrapper.style.position = "relative";
|
||||||
wrapper.innerHTML = `
|
wrapper.innerHTML = `
|
||||||
<button type="button" title=window.ShaarliProI18n.t("Color") aria-label=window.ShaarliProI18n.t("Color") id="${paletteBtnId}"><i class="mdi mdi-palette-outline" aria-hidden="true"></i></button>
|
<button type="button" title="${window.ShaarliProI18n.t("Color")}" aria-label="${window.ShaarliProI18n.t("Color")}" id="${paletteBtnId}"><i class="mdi mdi-palette-outline" aria-hidden="true"></i></button>
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const pinLink = Array.from(actions.querySelectorAll('a[href*="/pin"], a[aria-label*=window.ShaarliProI18n.t("Pin")], a[title*=window.ShaarliProI18n.t("Pin")]'))[0];
|
const pinLink = Array.from(actions.querySelectorAll(`a[href*="/pin"], a[aria-label*="${window.ShaarliProI18n.t("Pin")}"], a[title*="${window.ShaarliProI18n.t("Pin")}"]`))[0];
|
||||||
if (pinLink && pinLink.parentNode === actions) {
|
if (pinLink && pinLink.parentNode === actions) {
|
||||||
actions.insertBefore(wrapper, pinLink);
|
actions.insertBefore(wrapper, pinLink);
|
||||||
} else if (editLink && editLink.parentNode === actions) {
|
} else if (editLink && editLink.parentNode === actions) {
|
||||||
|
|||||||
Reference in New Issue
Block a user