diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-08-22 22:34:33 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-08-22 22:34:33 -0400 |
commit | b944b44dcadfdf2958bf3b4a943c751a7091f7ac (patch) | |
tree | 6fc1f708361644f27b38197673b0659965bfb6c4 /assets/js/src | |
parent | 312dfbb89e287432ba108b448fbc036e7fda4e27 (diff) |
Do not force redirect when clicking on task board link
Diffstat (limited to 'assets/js/src')
-rw-r--r-- | assets/js/src/Board.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/assets/js/src/Board.js b/assets/js/src/Board.js index 83d2e6c3..cb89bbb4 100644 --- a/assets/js/src/Board.js +++ b/assets/js/src/Board.js @@ -100,7 +100,7 @@ Board.prototype.resizeColumnHeight = function() { $(this).height(500); } else { - $(this).css("min-height", 100); + $(this).css("min-height", 320); // Min height is the height of the menu dropdown } }); } @@ -135,8 +135,10 @@ Board.prototype.dragAndDrop = function() { Board.prototype.listen = function() { var self = this; - $(document).on("click", ".task-board", function() { - window.location = $(this).data("task-url"); + $(document).on("click", ".task-board", function(e) { + if (e.target.tagName != "A") { + window.location = $(this).data("task-url"); + } }); $(document).on('click', ".filter-toggle-scrolling", function(e) { |