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

This commit is contained in:
Georg Brandl
2010-11-20 18:00:23 +01:00
parent fbaae8b740
commit dae3933e87

View File

@@ -614,11 +614,12 @@
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({