2014-01-28 Sergio Martin <sergio.martin@artica.es>

* mobile/operation/events.php: Improve the method of
	detection if first event list loaded is on the 
	window limits. 



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9383 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
zarzuelo 2014-01-28 15:37:53 +00:00
parent 3b154a779e
commit eabd6879f5
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2014-01-28 Sergio Martin <sergio.martin@artica.es>
* mobile/operation/events.php: Improve the method of
detection if first event list loaded is on the
window limits.
2014-01-28 Sergio Martin <sergio.martin@artica.es>
* mobile/operation/events.php: Fix event loading when

View File

@ -935,7 +935,9 @@ class Events {
add_rows(data);
//For large screens load the new events
if (document.documentElement.scrollHeight <= document.documentElement.clientHeight) {
//Check if the end of the event list tables is in the client limits
var table_end = $('#list_events').offset().top + $('#list_events').height();
if (table_end < document.documentElement.clientHeight) {
ajax_load_rows();
}