src/cm/media/js/client/c_sync.js
changeset 375 d6439b3eb2de
parent 341 053551f213fb
child 421 3ddbfa64f596
equal deleted inserted replaced
374:aa71c04f5832 375:d6439b3eb2de
   480   
   480   
   481   showAllComments : function() {
   481   showAllComments : function() {
   482     checkForOpenedDialog(null, function() {
   482     checkForOpenedDialog(null, function() {
   483       gShowingAllComments = true ;
   483       gShowingAllComments = true ;
   484       var allTopComments = CY.Array.map(gDb.comments, function(c){return c.id;}) ;
   484       var allTopComments = CY.Array.map(gDb.comments, function(c){return c.id;}) ;
   485       this.showComments(allTopComments, [0,0], true) ;
   485       // GIB: go down the 'add comment' icon
       
   486       this.showComments(allTopComments, [0,30], true) ;
   486     }, this, null) ;
   487     }, this, null) ;
   487   },
   488   },
   488 
   489 
   489   showScopeRemovedComments : function() {
   490   showScopeRemovedComments : function() {
   490     checkForOpenedDialog(null, function() {
   491     checkForOpenedDialog(null, function() {
   491       gShowingAllComments = true ;
   492       gShowingAllComments = true ;
   492       var scopeRemovedComments = CY.Array.filter(gDb.comments, function(comment) { return (comment.start_wrapper == -1) ; }) ;
   493       var scopeRemovedComments = CY.Array.filter(gDb.comments, function(comment) { return (comment.start_wrapper == -1) ; }) ;
   493       var scopeRemovedCommentIds = CY.Array.map(scopeRemovedComments, function(c){return c.id;}) ;
   494       var scopeRemovedCommentIds = CY.Array.map(scopeRemovedComments, function(c){return c.id;}) ;
   494       this.showComments(scopeRemovedCommentIds, [0,0], true) ;
   495       // GIB: go down the 'add comment' icon
       
   496       this.showComments(scopeRemovedCommentIds, [0,30], true) ;
   495       
   497       
   496     }, this, null) ;
   498     }, this, null) ;
   497   },
   499   },
   498 
   500 
   499   showComments : function(commentDbIds, mouseXY, atDocumentTop) {
   501   showComments : function(commentDbIds, mouseXY, atDocumentTop) {