Display confirmation box to close task from the board and improve popover listeners

This commit is contained in:
Frederic Guillot
2015-02-15 19:35:28 -05:00
parent 186f8ba840
commit 321b1914ef
11 changed files with 46 additions and 51 deletions

View File

@@ -178,11 +178,6 @@ var Kanboard = (function() {
// Check the session every 60s
window.setInterval(Kanboard.CheckSession, 60000);
$(".popover-subtask-restriction").click(Kanboard.Popover);
// Image preview for attachments
$(".file-popover").click(Kanboard.Popover);
// Keyboard shortcuts
Mousetrap.bind("mod+enter", function() {
$("form").submit();
@@ -207,6 +202,9 @@ var Kanboard = (function() {
InitAfterAjax: function() {
// Popover
$(document).on("click", ".popover", Kanboard.Popover);
// Datepicker
$(".form-date").datepicker({
showOtherMonths: true,