1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-08 15:47:00 +02:00

Use AJAX for pagination

This commit is contained in:
Jakub Vrana
2010-10-18 22:39:17 +02:00
parent 388680ac62
commit 6e3c7cba1f
4 changed files with 6 additions and 5 deletions

View File

@@ -442,7 +442,7 @@ function remove_from_uri($param = "") {
* @return string
*/
function pagination($page, $current) {
return " " . ($page == $current ? $page + 1 : '<a href="' . h(remove_from_uri("page") . ($page ? "&page=$page" : "")) . '">' . ($page + 1) . "</a>");
return " " . ($page == $current ? $page + 1 : '<a href="' . h(remove_from_uri("page") . ($page ? "&page=$page" : "")) . '" onclick="return !ajaxMain(this.href);">' . ($page + 1) . "</a>");
}
/** Get file contents from $_FILES