Use same tooltips for column description and task footer.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user