[IMP]if comment is present enable comment count
bzr revid: mba@tinyerp.com-20140211065258-a5j6fuk539q552ul
This commit is contained in:
parent
ce2a772ae3
commit
93e7ba444e
|
@ -31,7 +31,7 @@
|
|||
transition: all 0.5s;
|
||||
}
|
||||
.disqussion a.has-comments {
|
||||
opacity: .8;
|
||||
opacity: .6;
|
||||
}
|
||||
.disqussion-contain:hover .disqussion a {
|
||||
opacity: 1;
|
||||
|
|
|
@ -57,7 +57,8 @@ var disqus_identifier;
|
|||
|
||||
var prepareDisquseLink = function(data,identifier,node) {
|
||||
|
||||
var a = $('<a class="disqussion-link" />')
|
||||
var cls = data.length > 0 ? 'disqussion-link has-comments' : 'disqussion-link';
|
||||
var a = $('<a class="'+ cls +'" />')
|
||||
.attr('data-disqus-identifier', identifier)
|
||||
.attr('data-disqus-position', settings.position)
|
||||
.text(data.length > 0 ? data.length : '+')
|
||||
|
@ -66,7 +67,7 @@ var disqus_identifier;
|
|||
.parent()
|
||||
.appendTo('#disqussions_wrapper');
|
||||
a.css({
|
||||
'top': node.offset().top,
|
||||
'top': node.offset().top + 40,
|
||||
'left': settings.position == 'right' ? node.offset().left + node.outerWidth() : node.offset().left - a.outerWidth()
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue