summaryrefslogtreecommitdiff
path: root/assets
diff options
context:
space:
mode:
authorFrancois Ferrand <thetypz@gmail.com>2014-06-26 15:52:39 +0200
committerFrancois Ferrand <thetypz@gmail.com>2014-07-01 11:16:19 +0200
commit6d65cfd88343aadc68e4963e66dcdc0688b4346c (patch)
tree1615e89e40f1068166d2f59d910681813e451c67 /assets
parent06d0b7048ebcdfdf6e24eec3ac7dc8fb0327dd6f (diff)
Use popover to edit task and description directly from board.
- Click on 'description' icon opens the 'edit-description' page. - Edit task and edit description now open in popover, like the assign dialog.
Diffstat (limited to 'assets')
-rw-r--r--assets/js/board.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/assets/js/board.js b/assets/js/board.js
index f43f3f57..0487005d 100644
--- a/assets/js/board.js
+++ b/assets/js/board.js
@@ -15,14 +15,14 @@
});
// Open assignee popover
- $(".task-board-user a").click(function(e) {
+ $(".task-board-popover").click(function(e) {
e.preventDefault();
e.stopPropagation();
- var taskId = $(this).parent().parent().attr("data-task-id");
+ var href = $(this).attr('href');
- $.get("?controller=board&action=assign&task_id=" + taskId, function(data) {
+ $.get(href, function(data) {
popover_show(data);
});
});