diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-05-17 17:43:46 -0400 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-05-17 17:43:46 -0400 |
commit | 4d677b720e818f9d14585479699335ec41ed3541 (patch) | |
tree | 4fba05e7123089f8951977c55ccec006b10e2ee0 /assets/js | |
parent | 5e4b40665fa11ce0fd0fe957a19e2b7e63f47446 (diff) |
Click on a task redirect to the show page
Diffstat (limited to 'assets/js')
-rw-r--r-- | assets/js/board.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/assets/js/board.js b/assets/js/board.js index eab3916b..105641ef 100644 --- a/assets/js/board.js +++ b/assets/js/board.js @@ -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) { |