summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authoranonfagola <anonfagola@users.noreply.github.com>2014-09-26 16:55:16 -0700
committerczaks <marcin@6irc.net>2014-09-27 10:48:36 +0200
commitd9f20c290db89b17640228df6c405925e9ead587 (patch)
tree392f4910fd85228646a2cafaf8f0ef11abac0a27 /js
parent9596b6ace3f1c07c7aef0fab7ca502c3699863e6 (diff)
Updated threadscroll.js with bettter compatibility
Diffstat (limited to 'js')
-rw-r--r--js/threadscroll.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/threadscroll.js b/js/threadscroll.js
index c3c6deef..0a233f58 100644
--- a/js/threadscroll.js
+++ b/js/threadscroll.js
@@ -16,7 +16,7 @@ if(active_page == "index" || active_page == "ukko"){
if(par.length == 1){
if(par.prev().attr("id") != null){
if(par.prev().attr("id").match("^thread")){
- window.location.href = window.location.protocol+"//"+window.location.host+window.location.pathname+"#"+par.prev().attr("id");
+ par.prev()[0].scrollIntoView(true);
}
}
}
@@ -28,7 +28,7 @@ if(active_page == "index" || active_page == "ukko"){
if(par.length == 1){
if(par.next().attr("id") != null){
if(par.next().attr("id").match("^thread")){
- window.location.href = window.location.protocol+"//"+window.location.host+window.location.pathname+"#"+par.next().attr("id");
+ par.next()[0].scrollIntoView(true);
}
}
}