mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-03 20:14:52 +02:00
2013-12-13 Sergio Martin <sergio.martin@artica.es>
* mobile/operation/events.php, mobile/operation/modules.php, mobile/operation/agents.php: fixed the scroll of list for old browser in android mobiles devices. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9223 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
6a0212c5d4
commit
182b594c1c
@ -1,3 +1,9 @@
|
|||||||
|
2013-12-13 Sergio Martin <sergio.martin@artica.es>
|
||||||
|
|
||||||
|
* mobile/operation/events.php, mobile/operation/modules.php,
|
||||||
|
mobile/operation/agents.php: fixed the scroll of list for old
|
||||||
|
browser in android mobiles devices.
|
||||||
|
|
||||||
2013-12-13 Sergio Martin <sergio.martin@artica.es>
|
2013-12-13 Sergio Martin <sergio.martin@artica.es>
|
||||||
|
|
||||||
* include/graphs/flot/pandora.flot.js: Fixed wrong
|
* include/graphs/flot/pandora.flot.js: Fixed wrong
|
||||||
|
@ -354,8 +354,8 @@ class Agents {
|
|||||||
$ui->contentAddHtml("<script type=\"text/javascript\">
|
$ui->contentAddHtml("<script type=\"text/javascript\">
|
||||||
var load_more_rows = 1;
|
var load_more_rows = 1;
|
||||||
var page = 1;
|
var page = 1;
|
||||||
$(document).ready(function() {
|
|
||||||
$(window).bind(\"scroll\", function () {
|
function custom_scroll() {
|
||||||
|
|
||||||
if (load_more_rows) {
|
if (load_more_rows) {
|
||||||
if ($(this).scrollTop() + $(this).height()
|
if ($(this).scrollTop() + $(this).height()
|
||||||
@ -404,6 +404,15 @@ class Agents {
|
|||||||
\"json\");
|
\"json\");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$(document).ready(function() {
|
||||||
|
$(window).bind(\"scroll\", function () {
|
||||||
|
custom_scroll();
|
||||||
|
});
|
||||||
|
|
||||||
|
$(window).on(\"touchmove\", function(event) {
|
||||||
|
custom_scroll();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
</script>");
|
</script>");
|
||||||
|
@ -944,14 +944,24 @@ class Events {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
ajax_load_rows();
|
||||||
|
|
||||||
$(window).bind(\"scroll\", function () {
|
$(window).bind(\"scroll\", function () {
|
||||||
|
custom_scroll();
|
||||||
|
});
|
||||||
|
|
||||||
|
$(window).on(\"touchmove\", function(event) {
|
||||||
|
custom_scroll();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
function custom_scroll() {
|
||||||
if ($(this).scrollTop() + $(this).height()
|
if ($(this).scrollTop() + $(this).height()
|
||||||
>= ($(document).height() - 100)) {
|
>= ($(document).height() - 100)) {
|
||||||
|
|
||||||
ajax_load_rows();
|
ajax_load_rows();
|
||||||
}
|
}
|
||||||
});
|
}
|
||||||
});
|
|
||||||
</script>");
|
</script>");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -593,9 +593,8 @@ class Modules {
|
|||||||
$ui->contentAddHtml("<script type=\"text/javascript\">
|
$ui->contentAddHtml("<script type=\"text/javascript\">
|
||||||
var load_more_rows = 1;
|
var load_more_rows = 1;
|
||||||
var page = 1;
|
var page = 1;
|
||||||
$(document).ready(function() {
|
|
||||||
$(window).bind(\"scroll\", function () {
|
|
||||||
|
|
||||||
|
function custom_scroll() {
|
||||||
if (load_more_rows) {
|
if (load_more_rows) {
|
||||||
if ($(this).scrollTop() + $(this).height()
|
if ($(this).scrollTop() + $(this).height()
|
||||||
>= ($(document).height() - 100)) {
|
>= ($(document).height() - 100)) {
|
||||||
@ -641,6 +640,15 @@ class Modules {
|
|||||||
\"json\");
|
\"json\");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$(document).ready(function() {
|
||||||
|
$(window).bind(\"scroll\", function () {
|
||||||
|
custom_scroll();
|
||||||
|
});
|
||||||
|
|
||||||
|
$(window).on(\"touchmove\", function(event) {
|
||||||
|
custom_scroll();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
</script>");
|
</script>");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user