From b944b44dcadfdf2958bf3b4a943c751a7091f7ac Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 22 Aug 2015 22:34:33 -0400 Subject: Do not force redirect when clicking on task board link --- assets/js/src/Board.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'assets/js/src') 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) { -- cgit v1.2.3