From 61883ba9f849bdf1b500f27b8028be7356fe4d19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kasper=20Rynning-T=C3=B8nnesen?= Date: Mon, 4 May 2015 10:53:51 +0200 Subject: [PATCH] fixing scroll dick --- static/js/list.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/static/js/list.js b/static/js/list.js index ccc4f32d..437f398d 100755 --- a/static/js/list.js +++ b/static/js/list.js @@ -152,8 +152,11 @@ function importOldList(chan){ function refresh_scroll() { - myScroll.refresh(); - myScroll.maxScrollY = myScroll.maxScrollY - 5; + if(myScroll !== undefined) + { + myScroll.refresh(); + myScroll.maxScrollY = myScroll.maxScrollY - 5; + } } function show(){