#37 click on task to access it
This commit is contained in:
@@ -211,4 +211,10 @@
|
|||||||
col.addEventListener('drop', handleColumnDrop, false);
|
col.addEventListener('drop', handleColumnDrop, false);
|
||||||
});
|
});
|
||||||
|
|
||||||
}());
|
[].forEach.call(document.querySelectorAll('[data-task-id]'), function (item) {
|
||||||
|
item.addEventListener('click', function() {
|
||||||
|
window.location.href = '?controller=task&action=show&task_id=' + item.getAttribute('data-task-id');
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
}());
|
||||||
|
|||||||
@@ -211,4 +211,5 @@ return array(
|
|||||||
'Comment added successfully.' => 'Commentaire ajouté avec succès.',
|
'Comment added successfully.' => 'Commentaire ajouté avec succès.',
|
||||||
'Unable to create your comment.' => 'Impossible de sauvegarder votre commentaire.',
|
'Unable to create your comment.' => 'Impossible de sauvegarder votre commentaire.',
|
||||||
'The description is required' => 'La description est obligatoire',
|
'The description is required' => 'La description est obligatoire',
|
||||||
|
//'Edit this task' => '',
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -208,10 +208,11 @@ return array(
|
|||||||
'%B %e, %G at %k:%M %p' => '%e %B %G o %k:%M',
|
'%B %e, %G at %k:%M %p' => '%e %B %G o %k:%M',
|
||||||
'Comments' => 'Komentarze',
|
'Comments' => 'Komentarze',
|
||||||
'Post comment' => 'Dodaj komentarz',
|
'Post comment' => 'Dodaj komentarz',
|
||||||
//'Write your text in Markdown' => '',
|
'Write your text in Markdown' => 'Możesz użyć Markdown',
|
||||||
//'Leave a comment' => '',
|
'Leave a comment' => 'Zostaw komentarz',
|
||||||
//'Comment is required' => '',
|
'Comment is required' => 'Komentarz jest wymagany',
|
||||||
//'Comment added successfully.' => '',
|
'Comment added successfully.' => 'Komentarz dodany',
|
||||||
//'Unable to create your comment.' => '',
|
'Unable to create your comment.' => 'Nie udało się dodać komentarza',
|
||||||
//'The description is required' => '',
|
'The description is required' => 'Opis jest wymagany',
|
||||||
|
'Edit this task' => 'Edytuj zadanie'
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -54,9 +54,9 @@
|
|||||||
dropzone="copy">
|
dropzone="copy">
|
||||||
<?php foreach ($column['tasks'] as $task): ?>
|
<?php foreach ($column['tasks'] as $task): ?>
|
||||||
<div class="draggable-item" draggable="true">
|
<div class="draggable-item" draggable="true">
|
||||||
<div class="task task-<?= $task['color_id'] ?>" data-task-id="<?= $task['id'] ?>">
|
<div class="task task-<?= $task['color_id'] ?>" data-task-id="<?= $task['id'] ?>" title="<?= t('View this task') ?>">
|
||||||
|
|
||||||
<a href="?controller=task&action=show&task_id=<?= $task['id'] ?>" title="<?= t('View this task') ?>">#<?= $task['id'] ?></a> -
|
<a href="?controller=task&action=edit&task_id=<?= $task['id'] ?>" title="<?= t('Edit this task') ?>">#<?= $task['id'] ?></a> -
|
||||||
|
|
||||||
<span class="task-user">
|
<span class="task-user">
|
||||||
<?php if (! empty($task['owner_id'])): ?>
|
<?php if (! empty($task['owner_id'])): ?>
|
||||||
@@ -86,4 +86,4 @@
|
|||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<script type="text/javascript" src="assets/js/board.js"></script>
|
<script type="text/javascript" src="assets/js/board.js"></script>
|
||||||
|
|||||||
Reference in New Issue
Block a user