diff --git a/views.py b/views.py
index 22a9f1384610c99bebc34d341b9fd989354295eb_dmlld3MucHk=..deb0b9b537380d4b0e249397fd01f08bb8287125_dmlld3MucHk= 100644
--- a/views.py
+++ b/views.py
@@ -254,8 +254,8 @@
         if addcomment is not None:
             url = req.build_ajax_replace_url(
                 'comment%sHolder' % eid, rql_for_eid(eid), 'inlinecomment')
-            self.w(u' (<a href="%s">%s</a>)' % (url, req._(addcomment.title)))
+            self.w(u' (<a href="%s" onclick="javascript:toggleVisibility(\'addCommentLinks\');">%s</a>)' % (url, req._(addcomment.title)))
             # XXX still necessary?
             #if req.use_fckeditor() and req.property_value('ui.default-text-format') == 'text/html':
             #    req.fckeditor_config()
         if req.cnx.anonymous_connection:
@@ -258,8 +258,9 @@
             # XXX still necessary?
             #if req.use_fckeditor() and req.property_value('ui.default-text-format') == 'text/html':
             #    req.fckeditor_config()
         if req.cnx.anonymous_connection:
-            self.w(u'%s %s' % (_login_register_link(req), req._(u'to comment')))
+            self.w(u'<div id="addCommentLinks" class="hidden">%s %s</div>' % \
+                   (_login_register_link(req), req._(u'to comment')))
         self.w(u'<div id="comment%sHolder"></div>' % eid)
         if rset.rowcount:
             self.w(u'<ul class="comment">')