mirror of
https://github.com/openvk/openvk
synced 2025-01-09 17:29:42 +03:00
parent
a14cae3cc1
commit
9a82ac60c1
1 changed files with 3 additions and 3 deletions
|
@ -192,7 +192,7 @@ tippy(".client_app", {
|
||||||
function addNote(textareaId, nid)
|
function addNote(textareaId, nid)
|
||||||
{
|
{
|
||||||
if(nid > 0) {
|
if(nid > 0) {
|
||||||
note.value = nid
|
document.getElementById("note").value = nid
|
||||||
let noteObj = document.querySelector("#nd"+nid)
|
let noteObj = document.querySelector("#nd"+nid)
|
||||||
|
|
||||||
let nortd = document.querySelector("#post-buttons"+textareaId+" .post-has-note");
|
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)}`
|
nortd.innerHTML = `${tr("note")} ${escapeHtml(noteObj.dataset.name)}`
|
||||||
} else {
|
} else {
|
||||||
note.value = "none"
|
document.getElementById("note").value = "none"
|
||||||
|
|
||||||
let nortd = document.querySelector("#post-buttons"+textareaId+" .post-has-note");
|
let nortd = document.querySelector("#post-buttons"+textareaId+" .post-has-note");
|
||||||
nortd.style.display = "none"
|
nortd.style.display = "none"
|
||||||
|
@ -227,7 +227,7 @@ async function attachNote(id)
|
||||||
${tr("select_or_create_new")}
|
${tr("select_or_create_new")}
|
||||||
<div id="notesList">`
|
<div id="notesList">`
|
||||||
|
|
||||||
if(note.value != "none") {
|
if(document.getElementById("note").value != "none") {
|
||||||
body += `
|
body += `
|
||||||
<div class="ntSelect" onclick="addNote(${id}, 0)">
|
<div class="ntSelect" onclick="addNote(${id}, 0)">
|
||||||
<span>${tr("do_not_attach_note")}</span>
|
<span>${tr("do_not_attach_note")}</span>
|
||||||
|
|
Loading…
Reference in a new issue