From 00c59cfcb6c1b080e8d5a62853a4e5c4fcfffc4a Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Fri, 29 Jul 2016 12:03:19 +0300 Subject: www: fix newMessage form handler --- juick-www/src/main/static/scripts.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'juick-www/src') diff --git a/juick-www/src/main/static/scripts.js b/juick-www/src/main/static/scripts.js index c46eb540..1bfeef66 100644 --- a/juick-www/src/main/static/scripts.js +++ b/juick-www/src/main/static/scripts.js @@ -696,9 +696,9 @@ ready(function () { e.target.addEventListener('keypress', function(e) { postformListener(e.target, e); }); - parent.querySelector('a').addEventListener('click', function(e) { - attachMessagePhoto(e.target); - }); + }); + newMessageBlock.querySelector('a').addEventListener('click', function(e) { + attachMessagePhoto(e.target); }); } unfoldPostForm(); -- cgit v1.2.3