Add inline task title editing in popup

This commit is contained in:
2026-02-22 17:23:54 +01:00
parent 8f2e332069
commit 8d4d539283
2 changed files with 101 additions and 1 deletions

View File

@@ -342,6 +342,17 @@ class Tasks
exit;
}
static public function task_change_title() {
global $mdb;
if ( $mdb -> update( 'tasks', [ 'name' => \S::get( 'title' ) ], [ 'id' => \S::get( 'task_id' ) ] ) ) {
echo json_encode( [ 'status' => 'success' ] );
} else {
echo json_encode( [ 'status' => 'error' ] );
}
exit;
}
static public function task_change_users() {
global $mdb, $user;