mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 06:55:46 +01:00
clicking the pagination block no longer sends page to top
This commit is contained in:
@@ -905,9 +905,14 @@ define(['composer'], function(composer) {
|
|||||||
|
|
||||||
function updateHeader() {
|
function updateHeader() {
|
||||||
if (pagination == null) {
|
if (pagination == null) {
|
||||||
|
$('.pagination-block a').on('click', function() {
|
||||||
|
return false;
|
||||||
|
});
|
||||||
|
|
||||||
jQuery('.pagination-block i:first').on('click', function() {
|
jQuery('.pagination-block i:first').on('click', function() {
|
||||||
app.scrollToTop();
|
app.scrollToTop();
|
||||||
});
|
});
|
||||||
|
|
||||||
jQuery('.pagination-block i:last').on('click', function() {
|
jQuery('.pagination-block i:last').on('click', function() {
|
||||||
app.scrollToBottom();
|
app.scrollToBottom();
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user