From fa3681cbdb5c8e4716197329172516d8355038f1 Mon Sep 17 00:00:00 2001 From: Mark Schouten <mark@tuxis.nl> Date: Mon, 30 Jun 2014 15:12:03 +0200 Subject: [PATCH] Fix paging --- zones.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zones.php b/zones.php index 3b7850c..592419e 100644 --- a/zones.php +++ b/zones.php @@ -194,6 +194,9 @@ if ($action == "list" or $action== "listslaves") { } } usort($return, "zonesort"); + if (isset($_GET['jtStartIndex']) and isset($_GET['jtPageSize'])) { + jtable_respond(array_slice($return, $_GET['jtStartIndex'], $_GET['jtPageSize'])); + } jtable_respond($return); } elseif ($action == "create") { if (_valid_label($_POST['name']) === FALSE) {