From 92894277a9cc5b2390fa7d4262ffae7ae64a78a8 Mon Sep 17 00:00:00 2001 From: Baris Soner Usakli Date: Sun, 12 Jan 2014 15:52:44 -0500 Subject: [PATCH] clicking the pagination block no longer sends page to top --- public/src/forum/topic.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/public/src/forum/topic.js b/public/src/forum/topic.js index 8c9d335f96..17f80def3f 100644 --- a/public/src/forum/topic.js +++ b/public/src/forum/topic.js @@ -905,9 +905,14 @@ define(['composer'], function(composer) { function updateHeader() { if (pagination == null) { + $('.pagination-block a').on('click', function() { + return false; + }); + jQuery('.pagination-block i:first').on('click', function() { app.scrollToTop(); }); + jQuery('.pagination-block i:last').on('click', function() { app.scrollToBottom(); });