mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-09-23 01:49:11 +02:00
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:
parent
bac8379678
commit
c080964700
@ -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>
|
2014-01-28 Sergio Martin <sergio.martin@artica.es>
|
||||||
|
|
||||||
* mobile/operation/events.php: Fix event loading when
|
* mobile/operation/events.php: Fix event loading when
|
||||||
|
@ -935,7 +935,9 @@ class Events {
|
|||||||
add_rows(data);
|
add_rows(data);
|
||||||
|
|
||||||
//For large screens load the new events
|
//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();
|
ajax_load_rows();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user