diff options
| author | Andrew Dolgov <fox@madoka.volgo-balt.ru> | 2012-09-04 12:10:42 +0400 |
|---|---|---|
| committer | Andrew Dolgov <fox@madoka.volgo-balt.ru> | 2012-09-04 12:10:42 +0400 |
| commit | e4f48f8621e4cbc4659cf95e9027d6d9b054f7a7 (patch) | |
| tree | a5beff6d340a659c73d2aa692066700935231ddb | |
| parent | b8cdc39433ef48daff9e27d6a3225481a4f914bb (diff) | |
correctHeadlinesOffset: check for elements to work on
| -rw-r--r-- | js/viewfeed.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/js/viewfeed.js b/js/viewfeed.js index 05b36f2bc..c38d9d555 100644 --- a/js/viewfeed.js +++ b/js/viewfeed.js @@ -1793,6 +1793,8 @@ function correctHeadlinesOffset(id) { var container = $("headlines-frame"); var row = $("RROW-" + id); + if (!container || !row) return; + var viewport = container.offsetHeight; var rel_offset_top = row.offsetTop - container.scrollTop; |