diff --git a/Web/static/js/al_wall.js b/Web/static/js/al_wall.js index 66696e29..0706b11a 100644 --- a/Web/static/js/al_wall.js +++ b/Web/static/js/al_wall.js @@ -920,54 +920,1881 @@ async function showArticle(note_id) { u("body").addClass("article"); } -async function attachNote(id) -{ - let notes = await API.Wall.getMyNotes() - let body = `` +u(document).on("click", "#editPost", async (e) => { + const target = u(e.target) + const post = target.closest("table") + const content = post.find(".post-content") + const edit_place = post.find('.post-edit') + const id = post.attr('data-id').split('_') - if(notes.closed < 1) { - body = `${tr("notes_closed")}` - } else { - if(notes.items.length < 1) { - body = `${tr("no_notes")}` - } else { - body = ` - ${tr("select_or_create_new")} -
+
+
+
+
+
+ |
+
+
+
+ ${ovk_proc_strtr(escapeHtml(video.title), 50)}
+
+
+ + + ${ovk_proc_strtr(escapeHtml(video.description ?? ""), 140)} + + ${ovk_proc_strtr(escapeHtml(author_name ?? ""), 100)} + |
+ + ${!is_attached ? tr("attach") : tr("detach")} + | +
${tr('info_name')}: | ++ |
${tr('description')}: | ++ |
${tr('video')}: | ++ + + | +
${tr('info_name')}: | ++ |
${tr('description')}: | ++ |
${tr('video_link_to_yt')}: | ++ + | +
${isGroup == true ? tr('groups_avatar') : tr('friends_avatar')}
+${tr('formats_avatar')}
${tr('troubles_avatar')}
+${tr('webcam_avatar')}
+${tr("selected_area_rotate")}
+ ++ + + + | +
+
+
+
+ ${post.preview}
+
+
+
+
+ ${tr("geotag")}: ${post.geo.name ?? tr("admin_open")}
+ |
+
+