mirror of
https://tt-rss.org/git/tt-rss.git
synced 2024-06-30 12:30:52 +02:00
moveToPost: check for current article element existing before getting its position info (closes #695)
This commit is contained in:
parent
14c84904fe
commit
2a7362596f
|
@ -590,7 +590,7 @@ function moveToPost(mode, noscroll, noexpand) {
|
||||||
|
|
||||||
if (!getInitParam("cdm_expanded")) {
|
if (!getInitParam("cdm_expanded")) {
|
||||||
|
|
||||||
if (!noscroll && article.offsetTop < ctr.scrollTop) {
|
if (!noscroll && article && article.offsetTop < ctr.scrollTop) {
|
||||||
scrollArticle(-ctr.offsetHeight/4);
|
scrollArticle(-ctr.offsetHeight/4);
|
||||||
} else {
|
} else {
|
||||||
cdmExpandArticle(prev_id, noexpand);
|
cdmExpandArticle(prev_id, noexpand);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user