Commits

Georg Brandl committed a97c62a

Add a "nocomment" class to be able to hide bubbles.

Comments (0)

Files changed (1)

sphinx/themes/basic/static/websupport.js

       var count = COMMENT_METADATA[id];
       var title = count + ' comment' + (count == 1 ? '' : 's');
       var image = count > 0 ? opts.commentBrightImage : opts.commentImage;
+      var addcls = count == 0 ? ' nocomment' : '';
       $(this)
         .append(
           $(document.createElement('a')).attr({
             href: '#',
-            'class': 'sphinx-comment',
+            'class': 'sphinx-comment' + addcls,
             id: 'ao' + id
           })
             .append($(document.createElement('img')).attr({