#37 click on task to access it
This commit is contained in:
parent
141616b48c
commit
1d94ba9914
|
|
@ -211,4 +211,10 @@
|
|||
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.',
|
||||
'Unable to create your comment.' => 'Impossible de sauvegarder votre commentaire.',
|
||||
'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',
|
||||
'Comments' => 'Komentarze',
|
||||
'Post comment' => 'Dodaj komentarz',
|
||||
//'Write your text in Markdown' => '',
|
||||
//'Leave a comment' => '',
|
||||
//'Comment is required' => '',
|
||||
//'Comment added successfully.' => '',
|
||||
//'Unable to create your comment.' => '',
|
||||
//'The description is required' => '',
|
||||
'Write your text in Markdown' => 'Możesz użyć Markdown',
|
||||
'Leave a comment' => 'Zostaw komentarz',
|
||||
'Comment is required' => 'Komentarz jest wymagany',
|
||||
'Comment added successfully.' => 'Komentarz dodany',
|
||||
'Unable to create your comment.' => 'Nie udało się dodać komentarza',
|
||||
'The description is required' => 'Opis jest wymagany',
|
||||
'Edit this task' => 'Edytuj zadanie'
|
||||
);
|
||||
|
|
|
|||
|
|
@ -54,9 +54,9 @@
|
|||
dropzone="copy">
|
||||
<?php foreach ($column['tasks'] as $task): ?>
|
||||
<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">
|
||||
<?php if (! empty($task['owner_id'])): ?>
|
||||
|
|
@ -86,4 +86,4 @@
|
|||
|
||||
</section>
|
||||
|
||||
<script type="text/javascript" src="assets/js/board.js"></script>
|
||||
<script type="text/javascript" src="assets/js/board.js"></script>
|
||||
|
|
|
|||
Loading…
Reference in New Issue