Skip to content

Node.js based forum software built for the modern web

helpers.getBookmarkFromIndex

psychobunny232d1aae318c
diff --git a/public/src/modules/helpers.js b/public/src/modules/helpers.js
index 04937895c5..0146a0aef1 100644
--- a/public/src/modules/helpers.js
+++ b/public/src/modules/helpers.js
@@ -93,6 +93,10 @@
return style.join(' ');
};
+ helpers.getBookmarkFromIndex = function(topic) {
+ return (topic.index || 0) + 1;
+ };
+
// Groups helpers
helpers.membershipBtn = function(groupObj) {
if (groupObj.isMember) {