HTML anker added to every comment, so when the reply-to-comment button is hit, the browser scrolls to the right position.

svn path=/plone.app.discussion/trunk/; revision=27143
This commit is contained in:
Timo Stollenwerk 2009-05-27 07:33:13 +00:00
parent c1aedbefb0
commit 5f52a0d56b

View File

@ -9,7 +9,8 @@
tal:define="reply reply_dict/comment;
depth reply_dict/depth|python:0;"
tal:attributes="class python:'comment replyTreeLevel'+str(depth);
style string:margin-left: ${depth}em;">
style string:margin-left: ${depth}em;
id string:comment-${reply/id}">
<h3>
<a name="comments" tal:attributes="name reply/title">
@ -36,7 +37,8 @@
<a href="#" class="reply-to-comment-button" title="reply to this comment"
tal:attributes="onclick string:createReplyToCommentForm(${reply/id});
id string:reply-to-comment-${reply/id}-button">
id string:reply-to-comment-${reply/id}-button;
href string:#comment-${reply/id}">
<img src="++resource++plone.app.discussion.images/reply.gif" />
</a>