summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorThomas Tanghus <thomas@tanghus.net>2012-07-10 13:16:26 +0200
committerThomas Tanghus <thomas@tanghus.net>2012-07-14 14:11:43 +0200
commitd45d73eecfcc4cff7e7edba8678509e78bec7e07 (patch)
treef2ba1333acbf52d2350eb7f05236efa4e8ab49e0 /apps
parent880d80be674fe4cc5c6be40980567ccd4b4553a5 (diff)
downloadnextcloud-server-d45d73eecfcc4cff7e7edba8678509e78bec7e07.tar.gz
nextcloud-server-d45d73eecfcc4cff7e7edba8678509e78bec7e07.zip
Try to avoid occasional error messages.
Diffstat (limited to 'apps')
-rw-r--r--apps/contacts/js/jquery.inview.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/contacts/js/jquery.inview.js b/apps/contacts/js/jquery.inview.js
index 01900b0b4b4..9687cd83368 100644
--- a/apps/contacts/js/jquery.inview.js
+++ b/apps/contacts/js/jquery.inview.js
@@ -62,8 +62,8 @@
function getViewportOffset() {
return {
- top: w.pageYOffset || documentElement.scrollTop || d.body.scrollTop,
- left: w.pageXOffset || documentElement.scrollLeft || d.body.scrollLeft
+ top: w.pageYOffset || documentElement.scrollTop || (d.body?d.body.scrollTop:0),
+ left: w.pageXOffset || documentElement.scrollLeft || (d.body?d.body.scrollLeft:0)
};
}