From e24a7451a0f17fc2f7325ebd79f0019c90a88c33 Mon Sep 17 00:00:00 2001 From: zarzuelo Date: Tue, 28 Jan 2014 12:25:49 +0000 Subject: [PATCH] 2014-01-28 Sergio Martin * mobile/operation/events.php: Fix event loading when the screen is bigger than the initial list height git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9381 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ pandora_console/mobile/operation/events.php | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index a8cffcb31f..9bce51d906 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2014-01-28 Sergio Martin + + * mobile/operation/events.php: Fix event loading when + the screen is bigger than the initial list height + 2014-01-28 Sergio Martin * include/languages/ca.mo diff --git a/pandora_console/mobile/operation/events.php b/pandora_console/mobile/operation/events.php index 8c0c8cc463..38c251cc23 100644 --- a/pandora_console/mobile/operation/events.php +++ b/pandora_console/mobile/operation/events.php @@ -935,9 +935,10 @@ class Events { add_rows(data); //For large screens load the new events - if (document.documentElement.scrollHeight == document.documentElement.clientHeight) { + if (document.documentElement.scrollHeight <= document.documentElement.clientHeight) { ajax_load_rows(); } + }, \"json\"); }