diff --git a/Web/Presenters/templates/components/textArea.xml b/Web/Presenters/templates/components/textArea.xml
index 07b37eef..9d6a81e9 100644
--- a/Web/Presenters/templates/components/textArea.xml
+++ b/Web/Presenters/templates/components/textArea.xml
@@ -10,6 +10,9 @@
+
+
+
{_poll}
@@ -52,7 +55,7 @@
-
+
@@ -91,10 +94,6 @@
diff --git a/Web/static/js/al_wall.js b/Web/static/js/al_wall.js
index 6a9ad971..802a81e4 100644
--- a/Web/static/js/al_wall.js
+++ b/Web/static/js/al_wall.js
@@ -22,10 +22,16 @@ function trim(string) {
return newStr;
}
-function handleUpload(id) {
- console.warn("блять...");
-
- u("#post-buttons" + id + " .postFileSel").not("#" + this.id).each(input => input.value = null);
+function handleVideoTAreaUpdate(event, id) {
+ console.log(event, id);
+ let indicator = u("#post-buttons" + id + " .post-upload");
+ let file = event.target.files[0];
+ if(typeof file === "undefined") {
+ indicator.attr("style", "display: none;");
+ } else {
+ u("span", indicator.nodes[0]).text("Видеолента: " + trim(file.name) + " (" + humanFileSize(file.size, false) + ")");
+ indicator.attr("style", "display: block;");
+ }
document.querySelector("#post-buttons" + id + " #wallAttachmentMenu").classList.add("hidden");
}