diff options
-rw-r--r-- | assets/js/app.js | 11 | ||||
-rw-r--r-- | assets/js/board.js | 11 |
2 files changed, 14 insertions, 8 deletions
diff --git a/assets/js/app.js b/assets/js/app.js index 65129fb4..4c39bf97 100644 --- a/assets/js/app.js +++ b/assets/js/app.js @@ -160,6 +160,11 @@ Kanboard.Board = (function() { var checkInterval = null; + function on_popover(e) + { + Kanboard.Popover(e, Kanboard.Init); + } + // Setup the board function board_load_events() { @@ -185,12 +190,10 @@ Kanboard.Board = (function() { $(".category-popover").click(Kanboard.Popover); // Task edit popover - $(".task-edit-popover").click(function(e) { - Kanboard.Popover(e, Kanboard.Init); - }); + $(".task-edit-popover").click(on_popover); // Description popover - $(".task-description-popover").click(Kanboard.Popover); + $(".task-description-popover").click(on_popover); // Tooltips $(".task-board-tooltip").tooltip({ diff --git a/assets/js/board.js b/assets/js/board.js index c02409d1..beea6160 100644 --- a/assets/js/board.js +++ b/assets/js/board.js @@ -3,6 +3,11 @@ Kanboard.Board = (function() { var checkInterval = null; + function on_popover(e) + { + Kanboard.Popover(e, Kanboard.Init); + } + // Setup the board function board_load_events() { @@ -28,12 +33,10 @@ Kanboard.Board = (function() { $(".category-popover").click(Kanboard.Popover); // Task edit popover - $(".task-edit-popover").click(function(e) { - Kanboard.Popover(e, Kanboard.Init); - }); + $(".task-edit-popover").click(on_popover); // Description popover - $(".task-description-popover").click(Kanboard.Popover); + $(".task-description-popover").click(on_popover); // Tooltips $(".task-board-tooltip").tooltip({ |