mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-10 16:05:49 +01:00
use topic.toTop()
This commit is contained in:
@@ -79,7 +79,7 @@ define('forum/category', [
|
|||||||
}
|
}
|
||||||
|
|
||||||
Category.toTop = function() {
|
Category.toTop = function() {
|
||||||
navigator.scrollTop();
|
navigator.scrollTop(0);
|
||||||
};
|
};
|
||||||
|
|
||||||
Category.toBottom = function() {
|
Category.toBottom = function() {
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ define('forum/topic', [
|
|||||||
|
|
||||||
function onKeyDown(ev) {
|
function onKeyDown(ev) {
|
||||||
if (ev.which === 36) { // home key
|
if (ev.which === 36) { // home key
|
||||||
navigator.scrollTop(0);
|
Topic.toTop();
|
||||||
return false;
|
return false;
|
||||||
} else if (ev.which === 35) { // end key
|
} else if (ev.which === 35) { // end key
|
||||||
Topic.toBottom();
|
Topic.toBottom();
|
||||||
@@ -123,7 +123,7 @@ define('forum/topic', [
|
|||||||
}
|
}
|
||||||
|
|
||||||
Topic.toTop = function() {
|
Topic.toTop = function() {
|
||||||
navigator.scrollTop();
|
navigator.scrollTop(0);
|
||||||
};
|
};
|
||||||
|
|
||||||
Topic.toBottom = function() {
|
Topic.toBottom = function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user