From 966ab4e4855cb9db14c6217887818d1c270a14d7 Mon Sep 17 00:00:00 2001 From: Sergio Oliveira Date: Tue, 19 Nov 2013 16:29:25 -0200 Subject: [PATCH] Not binding focus reply if user is not logged --- src/super_archives/templates/message-thread.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/super_archives/templates/message-thread.html b/src/super_archives/templates/message-thread.html index a99d45f..393628c 100644 --- a/src/super_archives/templates/message-thread.html +++ b/src/super_archives/templates/message-thread.html @@ -95,7 +95,9 @@ }); $('.vote.btn', this).on('click', vote); - $('.reply.btn', this).on('click', focus_reply); + {% if user.is_active %} + $('.reply.btn', this).on('click', focus_reply); + {% endif %} }); -- libgit2 0.21.2