From 5f52a0d56ba5ccb622478928754c8ff351f7f0ff Mon Sep 17 00:00:00 2001 From: Timo Stollenwerk Date: Wed, 27 May 2009 07:33:13 +0000 Subject: [PATCH] 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 --- plone/app/discussion/browser/comments.pt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plone/app/discussion/browser/comments.pt b/plone/app/discussion/browser/comments.pt index 9b21cd7..226789e 100644 --- a/plone/app/discussion/browser/comments.pt +++ b/plone/app/discussion/browser/comments.pt @@ -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}">

@@ -36,7 +37,8 @@ + id string:reply-to-comment-${reply/id}-button; + href string:#comment-${reply/id}">