Index: lams_central/web/includes/javascript/comments.js =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/includes/javascript/comments.js,v diff -u -r1.2 -r1.3 --- lams_central/web/includes/javascript/comments.js 16 Dec 2015 11:15:22 -0000 1.2 +++ lams_central/web/includes/javascript/comments.js 5 Jan 2016 05:43:46 -0000 1.3 @@ -29,7 +29,12 @@ } else { var loadString = "viewTopicThread.do?&sessionMapID=" + response.sessionMapID + "&threadUid=" + threadUid+"&commentUid="+commentUid; $(threadDiv).load(loadString, function() { - $('#msg'+commentUid).focus(); + // expand up to the reply - in case it is buried down in a lot of replies + // don't need to do this if we have started a new thread. + if ( threadUid != commentUid ) { + $('#tree' + threadUid).treetable("reveal",commentUid); + $('#msg'+commentUid).focus(); + } highlightMessage(); resizeIframe(); });