summaryrefslogtreecommitdiff
path: root/assets/js/src/board.js
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-02-04 22:19:32 -0500
committerFrederic Guillot <fred@kanboard.net>2015-02-04 22:19:32 -0500
commitb24b1e7e4e5ee0551ee56aa0f21c4425b479db2e (patch)
tree5fffaeb461707dada9f2909101d51c9da3c77a50 /assets/js/src/board.js
parent2d070627d751bf5728ec98a5efaf163532594cd9 (diff)
Add subtasks restrictions and time tracking
Diffstat (limited to 'assets/js/src/board.js')
-rw-r--r--assets/js/src/board.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/assets/js/src/board.js b/assets/js/src/board.js
index 6bc52326..e86d8018 100644
--- a/assets/js/src/board.js
+++ b/assets/js/src/board.js
@@ -107,7 +107,13 @@ Kanboard.Board = (function() {
e.preventDefault();
e.stopPropagation();
- $.get($(this).attr('href'), setTooltipContent);
+ if ($(this).hasClass("popover-subtask-restriction")) {
+ Kanboard.OpenPopover($(this).attr('href'));
+ $(_this).tooltip('close');
+ }
+ else {
+ $.get($(this).attr('href'), setTooltipContent);
+ }
});
});