Always load the master and slave zones

This commit is contained in:
Mark Schouten 2014-09-26 13:13:18 +02:00
parent ee0729e6c0
commit f047f60712
2 changed files with 3 additions and 3 deletions

View file

@ -112,7 +112,7 @@ function jtable_respond($records, $method = 'multiple', $msg = 'Undefined errorm
} else { } else {
if (isset($_GET['jtPageSize'])) { if (isset($_GET['jtPageSize'])) {
$jTableResult['TotalRecordCount'] = count($records); $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['Result'] = "OK";
$jTableResult['Records'] = $records; $jTableResult['Records'] = $records;

View file

@ -559,10 +559,10 @@ $(document).ready(function () {
$("#SlaveZones").jtable('reload'); $("#SlaveZones").jtable('reload');
} }
}); });
$('#MasterZones').jtable('load');
$('#SlaveZones').jtable('load');
$('#Users').jtable('load'); $('#Users').jtable('load');
<? } ?> <? } ?>
$('#MasterZones').jtable('load');
$('#SlaveZones').jtable('load');
}); });
</script> </script>
</body> </body>