From f047f60712751d73dba1eb5f88257a75897a36b2 Mon Sep 17 00:00:00 2001 From: Mark Schouten Date: Fri, 26 Sep 2014 13:13:18 +0200 Subject: [PATCH] Always load the master and slave zones --- includes/misc.inc.php | 2 +- index.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/misc.inc.php b/includes/misc.inc.php index 86d13f3..b41d808 100644 --- a/includes/misc.inc.php +++ b/includes/misc.inc.php @@ -112,7 +112,7 @@ function jtable_respond($records, $method = 'multiple', $msg = 'Undefined errorm } else { if (isset($_GET['jtPageSize'])) { $jTableResult['TotalRecordCount'] = count($records); - $records = array_slice($records, $_GET['jtStartIndex']-1, $_GET['jtPageSize']); + $records = array_slice($records, $_GET['jtStartIndex'], $_GET['jtPageSize']); } $jTableResult['Result'] = "OK"; $jTableResult['Records'] = $records; diff --git a/index.php b/index.php index f7b97cd..5a7f210 100644 --- a/index.php +++ b/index.php @@ -559,10 +559,10 @@ $(document).ready(function () { $("#SlaveZones").jtable('reload'); } }); - $('#MasterZones').jtable('load'); - $('#SlaveZones').jtable('load'); $('#Users').jtable('load'); + $('#MasterZones').jtable('load'); + $('#SlaveZones').jtable('load'); });