summaryrefslogtreecommitdiff
path: root/assets/js/board.js
diff options
context:
space:
mode:
authorrzeka <piotr@rzeka.net>2014-03-05 09:31:14 +0100
committerrzeka <piotr@rzeka.net>2014-03-05 09:31:14 +0100
commit1d94ba9914751b6acd742e5538263b0f394e9189 (patch)
tree5aaf5bca61da94217ad29d2908cb1275c3ef912e /assets/js/board.js
parent141616b48cdb2f05a8288be0519ac4094c292ba6 (diff)
#37 click on task to access it
Diffstat (limited to 'assets/js/board.js')
-rw-r--r--assets/js/board.js8
1 files changed, 7 insertions, 1 deletions
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');
+ });
+ });
+
+}());