From aa73a10fc4eefe3ebdc07b104e0dcb141a27bec5 Mon Sep 17 00:00:00 2001 From: Baris Soner Usakli Date: Fri, 24 Jan 2014 21:01:28 -0500 Subject: [PATCH] added pagination to vanilla topic template --- public/src/forum/topic.js | 5 +++-- public/templates/topic.tpl | 19 +++++++++++++------ 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/public/src/forum/topic.js b/public/src/forum/topic.js index 70b3172d8b..d17b136c63 100644 --- a/public/src/forum/topic.js +++ b/public/src/forum/topic.js @@ -19,8 +19,9 @@ define(['composer'], function(composer) { }, topic_name = templates.get('topic_name'), currentPage = parseInt(templates.get('currentPage'), 10), - pageCount = parseInt(templates.get('pageCount'), 10), - Topic.postCount = templates.get('postcount'); + pageCount = parseInt(templates.get('pageCount'), 10); + + Topic.postCount = templates.get('postcount'); function fixDeleteStateForPosts() { diff --git a/public/templates/topic.tpl b/public/templates/topic.tpl index 1aabe3c8c0..36b3a63076 100644 --- a/public/templates/topic.tpl +++ b/public/templates/topic.tpl @@ -1,5 +1,7 @@ + + @@ -201,12 +203,17 @@
- - - + +
+ +
+