diff options
| author | Benjamin Southall <applemansigloo@gmail.com> | 2017-05-04 13:59:52 +0900 |
|---|---|---|
| committer | Benjamin Southall <applemansigloo@gmail.com> | 2017-05-04 14:00:06 +0900 |
| commit | a68efaec3b422bedf1b828994adcd3d60e5c6911 (patch) | |
| tree | de7797d612538593a644a04c4a35ec722554296a /js/auto-reload.js | |
| parent | 7764bb50aaec6eb55a0f51e177c1d72f1d9c8ebc (diff) | |
On post submission manually update / reload the page for auto-reload.js.
Diffstat (limited to 'js/auto-reload.js')
| -rw-r--r-- | js/auto-reload.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/js/auto-reload.js b/js/auto-reload.js index 299ca166..b517feb0 100644 --- a/js/auto-reload.js +++ b/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 |
