summaryrefslogtreecommitdiff
path: root/assets/js/src/base.js
diff options
context:
space:
mode:
Diffstat (limited to 'assets/js/src/base.js')
-rw-r--r--assets/js/src/base.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/assets/js/src/base.js b/assets/js/src/base.js
index 75e04b3a..46d6cd9b 100644
--- a/assets/js/src/base.js
+++ b/assets/js/src/base.js
@@ -192,6 +192,22 @@ var Kanboard = (function() {
$(".column-tooltip").tooltip({
content: function() {
return '<div class="markdown">' + $(this).attr("title") + '</div>';
+ },
+ position: {
+ my: 'left-20 top',
+ at: 'center bottom+9',
+ using: function(position, feedback) {
+
+ $(this).css(position);
+
+ var arrow_pos = feedback.target.left + feedback.target.width / 2 - feedback.element.left - 20;
+
+ $("<div>")
+ .addClass("tooltip-arrow")
+ .addClass(feedback.vertical)
+ .addClass(arrow_pos == 0 ? "align-left" : "align-right")
+ .appendTo(this);
+ }
}
});