aboutsummaryrefslogtreecommitdiff
path: root/juick-www/src/main/static/scripts.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-07-29 12:03:19 +0300
committerGravatar Vitaly Takmazov2016-07-29 12:03:19 +0300
commit00c59cfcb6c1b080e8d5a62853a4e5c4fcfffc4a (patch)
tree5a11bad4f22c7059c2edc375831b2d896ae7a46b /juick-www/src/main/static/scripts.js
parent17853c71d7cc82d33f42bdef492a15ffcf08bd35 (diff)
www: fix newMessage form handler
Diffstat (limited to 'juick-www/src/main/static/scripts.js')
-rw-r--r--juick-www/src/main/static/scripts.js6
1 files changed, 3 insertions, 3 deletions
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();