소스 검색

On post submission manually update / reload the page for auto-reload.js.

pull/107/head
Benjamin Southall 7 년 전
부모
커밋
a68efaec3b
1개의 변경된 파일13개의 추가작업 그리고 0개의 파일을 삭제
  1. +13
    -0
      js/auto-reload.js

+ 13
- 0
js/auto-reload.js 파일 보기

@@ -43,6 +43,14 @@ var notify = false;
auto_reload_enabled = true; // for watch.js to interop

$(document).ready(function(){
if($('div.banner').length == 0)
{
return; // not index
}
if($(".post.op").size() != 1)
{
return; //not thread page
}

// Adds Options panel item
if (typeof localStorage.auto_thread_update === 'undefined') {
@@ -302,6 +310,11 @@ $(document).ready(function(){
return false;
};

$(post).on('submit', function(e){
poll(manualUpdate = true);
dothis(this);
});
$(window).scrollStopped(function() {
// if the newest post is not visible


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