Click on a task redirect to the show page

This commit is contained in:
Frédéric Guillot 2014-05-17 17:43:46 -04:00
parent 5e4b40665f
commit 4d677b720e
1 changed files with 9 additions and 0 deletions

View File

@ -5,6 +5,7 @@
// Setup the board
function board_load_events()
{
// Drag and drop
$(".column").sortable({
connectWith: ".column",
placeholder: "draggable-placeholder",
@ -13,6 +14,14 @@
}
});
// Redirect to the task details page
$("[data-task-id]").each(function() {
$(this).click(function() {
window.location = "?controller=task&action=show&task_id=" + $(this).attr("data-task-id");
});
});
// Automatic refresh
var interval = parseInt($("#board").attr("data-check-interval"));
if (interval > 0) {