From 1d94ba9914751b6acd742e5538263b0f394e9189 Mon Sep 17 00:00:00 2001 From: rzeka Date: Wed, 5 Mar 2014 09:31:14 +0100 Subject: #37 click on task to access it --- assets/js/board.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'assets/js/board.js') diff --git a/assets/js/board.js b/assets/js/board.js index d67521df..7742f3df 100644 --- a/assets/js/board.js +++ b/assets/js/board.js @@ -211,4 +211,10 @@ col.addEventListener('drop', handleColumnDrop, false); }); -}()); \ No newline at end of file + [].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'); + }); + }); + +}()); -- cgit v1.2.3