diff options
Diffstat (limited to 'lib/exe/ajax.php')
-rw-r--r-- | lib/exe/ajax.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/exe/ajax.php b/lib/exe/ajax.php index 8c93bcdab..e52d5d378 100644 --- a/lib/exe/ajax.php +++ b/lib/exe/ajax.php @@ -60,5 +60,20 @@ function ajax_qsearch(){ print '</ul>'; } +/** + * Refresh a page lock + * + * Andreas Gohr <andi@splitbrain.org> + */ +function ajax_lock(){ + $id = cleanID($_POST['id']); + if(empty($id)) return; + + if(!checklock($id)){ + lock($id); + print 1; + } +} + //Setup VIM: ex: et ts=2 enc=utf-8 : ?> |