summaryrefslogtreecommitdiff
path: root/assets/js/src
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-08-22 22:34:33 -0400
committerFrederic Guillot <fred@kanboard.net>2015-08-22 22:34:33 -0400
commitb944b44dcadfdf2958bf3b4a943c751a7091f7ac (patch)
tree6fc1f708361644f27b38197673b0659965bfb6c4 /assets/js/src
parent312dfbb89e287432ba108b448fbc036e7fda4e27 (diff)
Do not force redirect when clicking on task board link
Diffstat (limited to 'assets/js/src')
-rw-r--r--assets/js/src/Board.js8
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) {