Add subtasks restrictions and time tracking

This commit is contained in:
Frederic Guillot
2015-02-04 22:19:32 -05:00
parent 2d070627d7
commit b24b1e7e4e
38 changed files with 522 additions and 51 deletions

View File

@@ -178,6 +178,8 @@ var Kanboard = (function() {
$("form").submit();
});
$(".popover-subtask-restriction").click(Kanboard.Popover);
Kanboard.InitAfterAjax();
},

View File

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