diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-12-29 18:44:21 +0100 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-12-29 18:44:21 +0100 |
commit | 178eda18872f99840937dc3d23629b5d7aa7cee0 (patch) | |
tree | e2e27f289b5620e92b1accddcea9489286a65243 /app/Template/task_modification/edit_description.php | |
parent | b4c5e36ee4cbf34020eb043e54e9b7294062acee (diff) |
Add autocompletion in textarea for user mentions
Diffstat (limited to 'app/Template/task_modification/edit_description.php')
-rw-r--r-- | app/Template/task_modification/edit_description.php | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/app/Template/task_modification/edit_description.php b/app/Template/task_modification/edit_description.php index 4cae939c..c38e885d 100644 --- a/app/Template/task_modification/edit_description.php +++ b/app/Template/task_modification/edit_description.php @@ -17,7 +17,17 @@ </li> </ul> <div class="write-area"> - <?= $this->form->textarea('description', $values, $errors, array('autofocus', 'placeholder="'.t('Leave a description').'"'), 'task-show-description-textarea') ?> + <?= $this->form->textarea( + 'description', + $values, + $errors, + array( + 'autofocus', + 'placeholder="'.t('Leave a description').'"', + 'data-mention-search-url="'.$this->url->href('UserHelper', 'mention', array('project_id' => $task['project_id'])).'"' + ), + 'task-show-description-textarea' + ) ?> </div> <div class="preview-area"> <div class="markdown"></div> |