use topic.toTop()

This commit is contained in:
barisusakli
2015-09-25 19:01:15 -04:00
parent 3cdc0c6890
commit de15c2925d
2 changed files with 3 additions and 3 deletions

View File

@@ -79,7 +79,7 @@ define('forum/category', [
}
Category.toTop = function() {
navigator.scrollTop();
navigator.scrollTop(0);
};
Category.toBottom = function() {

View File

@@ -88,7 +88,7 @@ define('forum/topic', [
function onKeyDown(ev) {
if (ev.which === 36) { // home key
navigator.scrollTop(0);
Topic.toTop();
return false;
} else if (ev.which === 35) { // end key
Topic.toBottom();
@@ -123,7 +123,7 @@ define('forum/topic', [
}
Topic.toTop = function() {
navigator.scrollTop();
navigator.scrollTop(0);
};
Topic.toBottom = function() {