#37 click on task to access it

This commit is contained in:
rzeka
2014-03-05 09:31:14 +01:00
parent 141616b48c
commit 1d94ba9914
4 changed files with 18 additions and 10 deletions

View File

@@ -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');
});
});
}());