- {$comment->getText()|noescape}
+ {$comment->getText()|noescape}
diff --git a/Web/Presenters/templates/components/post/microblogpost.xml b/Web/Presenters/templates/components/post/microblogpost.xml
index c8cd2a12..6b0444c7 100644
--- a/Web/Presenters/templates/components/post/microblogpost.xml
+++ b/Web/Presenters/templates/components/post/microblogpost.xml
@@ -72,7 +72,7 @@
- {$post->getText()|noescape}
+ {$post->getText()|noescape}
diff --git a/Web/Presenters/templates/components/post/oldpost.xml b/Web/Presenters/templates/components/post/oldpost.xml
index ad7896f2..6e0b4c53 100644
--- a/Web/Presenters/templates/components/post/oldpost.xml
+++ b/Web/Presenters/templates/components/post/oldpost.xml
@@ -63,7 +63,7 @@
{var $owner = $author->getId()}
- {$post->getText()|noescape}
+ {$post->getText()|noescape}
diff --git a/Web/static/js/al_photos.js b/Web/static/js/al_photos.js
index 59965c09..41bf729b 100644
--- a/Web/static/js/al_photos.js
+++ b/Web/static/js/al_photos.js
@@ -142,23 +142,23 @@ $(document).on("dragover drop", (e) => {
return false;
})
-$(document).on("dragover", (e) => {
+$(".container_gray").on("dragover", (e) => {
e.preventDefault()
document.querySelector("#fakeButton").classList.add("dragged")
document.querySelector("#fakeButton").value = tr("drag_files_here")
})
-$(document).on("dragleave", (e) => {
+$(".container_gray").on("dragleave", (e) => {
e.preventDefault()
document.querySelector("#fakeButton").classList.remove("dragged")
document.querySelector("#fakeButton").value = tr("upload_picts")
})
-$("#fakeButton").on("drop", (e) => {
+$(".container_gray").on("drop", (e) => {
e.originalEvent.dataTransfer.dropEffect = 'move';
e.preventDefault()
- $(document).trigger("dragleave")
+ $(".container_gray").trigger("dragleave")
let files = e.originalEvent.dataTransfer.files
diff --git a/Web/static/js/al_wall.js b/Web/static/js/al_wall.js
index 9b54adce..4c8bb933 100644
--- a/Web/static/js/al_wall.js
+++ b/Web/static/js/al_wall.js
@@ -273,7 +273,7 @@ $(document).on("click", "#editPost", (e) => {
content.insertAdjacentHTML("afterbegin", `
-
+
@@ -343,6 +343,7 @@ $(document).on("click", "#editPost", (e) => {
post.querySelector(".post-avatar").setAttribute("src", result.author.avatar)
post.querySelector(".post-author-name").innerHTML = result.author.name
+ post.querySelector(".really_text").setAttribute("data-text", result.new_text)
} else {
MessageBox(tr("error"), result.error, [tr("ok")], [Function.noop])
post.querySelector("#editPost").click()