From 9a82ac60c19faa4a3c2e834b713c4a83aad82ec8 Mon Sep 17 00:00:00 2001 From: lalka2016 <99399973+lalka2016@users.noreply.github.com> Date: Thu, 6 Jul 2023 16:06:29 +0300 Subject: [PATCH] Fix note attachment in Google Chrome https://openvk.uk/wall2460_228 --- Web/static/js/al_wall.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Web/static/js/al_wall.js b/Web/static/js/al_wall.js index 867beb73..4ffa79c1 100644 --- a/Web/static/js/al_wall.js +++ b/Web/static/js/al_wall.js @@ -192,7 +192,7 @@ tippy(".client_app", { function addNote(textareaId, nid) { if(nid > 0) { - note.value = nid + document.getElementById("note").value = nid let noteObj = document.querySelector("#nd"+nid) let nortd = document.querySelector("#post-buttons"+textareaId+" .post-has-note"); @@ -200,7 +200,7 @@ function addNote(textareaId, nid) nortd.innerHTML = `${tr("note")} ${escapeHtml(noteObj.dataset.name)}` } else { - note.value = "none" + document.getElementById("note").value = "none" let nortd = document.querySelector("#post-buttons"+textareaId+" .post-has-note"); nortd.style.display = "none" @@ -227,7 +227,7 @@ async function attachNote(id) ${tr("select_or_create_new")}
` - if(note.value != "none") { + if(document.getElementById("note").value != "none") { body += `
${tr("do_not_attach_note")}