mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 23:35:57 +00:00
moveToPost: check for current article element existing before getting its position info (closes #695)
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user