src/cm/media/js/client/c_sync.js
changeset 339 0508284129cf
parent 337 614669e0e313
child 341 053551f213fb
equal deleted inserted replaced
338:3174f59df260 339:0508284129cf
   395 			else 
   395 			else 
   396 				topY = CY.get('document').get('scrollTop') ;
   396 				topY = CY.get('document').get('scrollTop') ;
   397 			
   397 			
   398 			this._showComments([topComment.id], topY, false) ;
   398 			this._showComments([topComment.id], topY, false) ;
   399 			// optim when browsing comments with no reply			
   399 			// optim when browsing comments with no reply			
   400 			if (topComment.replies.length > 0)
   400 			if (topComment.replies.length > 0 || reply)
   401 				this._animateToAndFocus(topY, focusComment.id, reply) ;
   401 				this._animateToAndFocus(topY, focusComment.id, reply) ;
   402 		}
   402 		}
   403 	},
   403 	},
   404 
   404 
   405 	showSingleComment : function(comment) {
   405 	showSingleComment : function(comment) {