Add inline task title editing in popup
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user