소스 검색

Updated threadscroll.js with bettter compatibility

pull/18/head
anonfagola czaks 9 년 전
부모
커밋
d9f20c290d
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. +2
    -2
      js/threadscroll.js

+ 2
- 2
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);
}
}
}


불러오는 중...
취소
저장