src/cm/media/js/client/c_sync.js
changeset 421 3ddbfa64f596
parent 375 d6439b3eb2de
child 432 aad07a378d44
equal deleted inserted replaced
420:0c2f890486c0 421:3ddbfa64f596
   425   _showComments : function(commentDbIds, topY, atDocumentTop) {
   425   _showComments : function(commentDbIds, topY, atDocumentTop) {
   426     this._q.add(
   426     this._q.add(
   427       {fn:function() {
   427       {fn:function() {
   428         gShowingAllComments = atDocumentTop ;     
   428         gShowingAllComments = atDocumentTop ;     
   429         gIComments.hide() ; 
   429         gIComments.hide() ; 
       
   430         hideToc();
   430         var cs = CY.Array.map(commentDbIds, function(id) { return gDb.getComment(id) ; }) ;
   431         var cs = CY.Array.map(commentDbIds, function(id) { return gDb.getComment(id) ; }) ;
   431         var comments = gDb.getThreads(cs) ;
   432         var comments = gDb.getThreads(cs) ;
   432         gIComments.fetch(comments) ;
   433         gIComments.fetch(comments) ;
   433   
   434   
   434         if (commentDbIds.length > 0) {
   435         if (commentDbIds.length > 0) {