aboutsummaryrefslogtreecommitdiff
path: root/bootstrap/comments/frontend/incrementcounts.js
diff options
context:
space:
mode:
Diffstat (limited to 'bootstrap/comments/frontend/incrementcounts.js')
-rw-r--r--bootstrap/comments/frontend/incrementcounts.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/bootstrap/comments/frontend/incrementcounts.js b/bootstrap/comments/frontend/incrementcounts.js
new file mode 100644
index 0000000..74e3d8c
--- /dev/null
+++ b/bootstrap/comments/frontend/incrementcounts.js
@@ -0,0 +1,11 @@
+// Increase comment counts (incrementcounts.js)
+HashOver.prototype.incrementCounts = function (isReply)
+{
+ // Count top level comments
+ if (isReply === false) {
+ this.instance['primary-count']++;
+ }
+
+ // Increase all count
+ this.instance['total-count']++;
+};