Refresh the board only when it's necessary and add a link on the task title
This commit is contained in:
@@ -14,6 +14,7 @@ abstract class Base
|
||||
$this->task = $registry->task;
|
||||
$this->user = $registry->user;
|
||||
$this->comment = $registry->comment;
|
||||
$this->event = $registry->shared('event');
|
||||
}
|
||||
|
||||
public function beforeAction($controller, $action)
|
||||
|
||||
@@ -276,7 +276,8 @@ class Board extends Base
|
||||
}
|
||||
|
||||
$this->response->json(array(
|
||||
'result' => $this->board->saveTasksPosition($this->request->getValues())
|
||||
'result' => $this->board->saveTasksPosition($this->request->getValues()),
|
||||
'refresh' => $this->event->getLastListenerExecuted() !== ''
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user