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:
parent
c1aedbefb0
commit
5f52a0d56b
@ -9,7 +9,8 @@
|
|||||||
tal:define="reply reply_dict/comment;
|
tal:define="reply reply_dict/comment;
|
||||||
depth reply_dict/depth|python:0;"
|
depth reply_dict/depth|python:0;"
|
||||||
tal:attributes="class python:'comment replyTreeLevel'+str(depth);
|
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>
|
<h3>
|
||||||
<a name="comments" tal:attributes="name reply/title">
|
<a name="comments" tal:attributes="name reply/title">
|
||||||
@ -36,7 +37,8 @@
|
|||||||
|
|
||||||
<a href="#" class="reply-to-comment-button" title="reply to this comment"
|
<a href="#" class="reply-to-comment-button" title="reply to this comment"
|
||||||
tal:attributes="onclick string:createReplyToCommentForm(${reply/id});
|
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" />
|
<img src="++resource++plone.app.discussion.images/reply.gif" />
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user