diff options
Diffstat (limited to 'lib/exe')
-rw-r--r-- | lib/exe/ajax.php | 15 | ||||
-rw-r--r-- | lib/exe/js.php | 2 |
2 files changed, 16 insertions, 1 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 : ?> diff --git a/lib/exe/js.php b/lib/exe/js.php index 79d846ed8..223917fc8 100644 --- a/lib/exe/js.php +++ b/lib/exe/js.php @@ -93,7 +93,7 @@ function js_out(){ js_runonstart("initChangeCheck('".js_escape($lang['notsavedyet'])."')"); // add lock timer - js_runonstart("init_locktimer(".($conf['locktime']-60).",'".js_escape($lang['willexpire'])."')"); + js_runonstart("locktimer.init(".($conf['locktime'] - 60).",'".js_escape($lang['willexpire'])."')"); // load spell checker if($conf['spellchecker']){ |