focus on comment specified as url parameter *even if it is not the last comment of a thread*
authorgibus
Mon, 08 Nov 2010 14:07:02 +0100
changeset 331 7ddb9fa9c3f2
parent 330 db7616686c57
child 332 f2771849dc09
focus on comment specified as url parameter *even if it is not the last comment of a thread*
src/cm/media/js/client/c_icomments.js
--- a/src/cm/media/js/client/c_icomments.js	Mon Nov 08 14:00:41 2010 +0100
+++ b/src/cm/media/js/client/c_icomments.js	Mon Nov 08 14:07:02 2010 +0100
@@ -188,7 +188,7 @@
 						nextY = xy[1] ;
 					}
 					
-          if (iComment.commentId == focusCommentId)
+          if (iComment.commentId >= focusCommentId)
   					this._a.push(iComment.setAnimationToPosition([iCommentX, nextY], focusCommentId)) ;
           else
   					this._a.push(iComment.setAnimationToPosition([iCommentX, nextY])) ;