summaryrefslogtreecommitdiff
path: root/js/viewfeed.js
diff options
context:
space:
mode:
authorjustauser <[email protected]>2013-05-28 11:39:58 -0400
committerjustauser <[email protected]>2013-05-28 11:39:58 -0400
commit991418fa566ff462d9616123168c5f7f839cdc15 (patch)
tree806d31367dbf0833511deafb1b73f88f892ad9cb /js/viewfeed.js
parent2e937560dfada30b398760308ce11f08c205d468 (diff)
parent1d7658969352ee73dd94baf3cea15364dd303786 (diff)
Merge branch 'master' into jremote
update working to master
Diffstat (limited to 'js/viewfeed.js')
-rw-r--r--js/viewfeed.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/viewfeed.js b/js/viewfeed.js
index 095bfab22..005e0758c 100644
--- a/js/viewfeed.js
+++ b/js/viewfeed.js
@@ -590,7 +590,7 @@ function moveToPost(mode, noscroll, noexpand) {
if (!getInitParam("cdm_expanded")) {
- if (!noscroll && article.offsetTop < ctr.scrollTop) {
+ if (!noscroll && article && article.offsetTop < ctr.scrollTop) {
scrollArticle(-ctr.offsetHeight/4);
} else {
cdmExpandArticle(prev_id, noexpand);