projects
/
misc
/
kostenrechnung
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Support custom save function
[misc/kostenrechnung]
/
ajax
/
ajax.php
diff --git
a/ajax/ajax.php
b/ajax/ajax.php
index
95e2034
..
185b5e4
100644
(file)
--- a/
ajax/ajax.php
+++ b/
ajax/ajax.php
@@
-83,6
+83,9
@@
function format_decimal($value)
function save($mask)
{
+ if (array_key_exists('save', $mask))
+ return $mask['save']($mask);
+
if (empty($_POST['id']))
return array('error' => 'Missing ID');