mirror of
https://github.com/tuxis-ie/nsedit.git
synced 2025-04-20 20:13:40 +03:00
Include a handler for 'option' fields
This commit is contained in:
parent
aae107b238
commit
484fa1d265
1 changed files with 3 additions and 0 deletions
|
@ -81,6 +81,9 @@ function jtable_respond($records, $method = 'multiple', $msg = 'Undefined errorm
|
||||||
$jTableResult['Record'] = $records;
|
$jTableResult['Record'] = $records;
|
||||||
} elseif ($method == 'delete') {
|
} elseif ($method == 'delete') {
|
||||||
$jTableResult['Result'] = "OK";
|
$jTableResult['Result'] = "OK";
|
||||||
|
} elseif ($method == 'options') {
|
||||||
|
$jTableResult['Result'] = "OK";
|
||||||
|
$jTableResult['Options'] = $records;
|
||||||
} else {
|
} else {
|
||||||
if (isset($_GET['jtPageSize'])) {
|
if (isset($_GET['jtPageSize'])) {
|
||||||
$jTableResult['TotalRecordCount'] = count($records);
|
$jTableResult['TotalRecordCount'] = count($records);
|
||||||
|
|
Loading…
Add table
Reference in a new issue