diff options
| author | undido <firekid109@hotmail.com> | 2013-03-20 00:56:59 -0300 |
|---|---|---|
| committer | undido <firekid109@hotmail.com> | 2013-03-20 00:56:59 -0300 |
| commit | 41ee55a1b2dadacdc646f5ca9797d2aa3cc91c10 (patch) | |
| tree | 827da5ef15111ee32f63e7251bdc9cd1c1308f21 | |
| parent | 31a21a59575f1306014c4069bce10b5e5a92a7c8 (diff) | |
Update auto-reload.js
check if viewing a thread or viewing a board page when updating a thread so new posts do not appear at bottom of page while viewing threads list not sure if this was because of an outdated template but I thought I should point out this as it may affect html templates no matter the code as the banner code is the only code that checks where the user currently is.
| -rw-r--r-- | js/auto-reload.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/js/auto-reload.js b/js/auto-reload.js index c0c63056..5d96146a 100644 --- a/js/auto-reload.js +++ b/js/auto-reload.js @@ -16,6 +16,9 @@ $(document).ready(function(){ if($('div.banner').length == 0) return; // not index + + if($(".post.op").size() != 1) + return; //not thread page var poll_interval; |
