Commit 94a7d734 authored by Ujvari Gergely's avatar Ujvari Gergely

Don't display reply number of the number of replies is 0

parent 4fa93497
......@@ -207,7 +207,7 @@ class Annotator.Plugin.Heatmap extends Annotator.Plugin
# Format: <top>+<replies> if this string is no longer than 4 characters
# Otherwise display: <ŧotal>
temp = b.top + '+' + b.replies
b.display = if temp.length < 5 then temp else b.total
b.display = if temp.length < 5 and b.replies > 0 then temp else b.total
# Set up the stop interpolations for data binding
stopData = $.map @buckets, (bucket, i) =>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment