From 6854cb3f4d8219cf1829e32122eb2502a916eae9 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sat, 1 Feb 2020 09:05:48 +0100 Subject: initial checkin --- js/callbacks/checksave.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 js/callbacks/checksave.php (limited to 'js/callbacks/checksave.php') diff --git a/js/callbacks/checksave.php b/js/callbacks/checksave.php new file mode 100644 index 0000000..a5fd1a4 --- /dev/null +++ b/js/callbacks/checksave.php @@ -0,0 +1,16 @@ +query('SELECT last_edited_time FROM {tasks} WHERE task_id = ?', array(Get::val('task_id'))); +$last_edit = $db->fetchOne($res); + +if (Get::val('time') >= $last_edit) { + echo 'ok'; +} +?> -- cgit v1.2.3-70-g09d2