Include a handler for 'option' fields

This commit is contained in:
Mark Schouten 2014-07-10 16:16:22 +02:00
parent aae107b238
commit 484fa1d265

View file

@ -81,6 +81,9 @@ function jtable_respond($records, $method = 'multiple', $msg = 'Undefined errorm
$jTableResult['Record'] = $records;
} elseif ($method == 'delete') {
$jTableResult['Result'] = "OK";
} elseif ($method == 'options') {
$jTableResult['Result'] = "OK";
$jTableResult['Options'] = $records;
} else {
if (isset($_GET['jtPageSize'])) {
$jTableResult['TotalRecordCount'] = count($records);