Skip to content

Commit 63f711c

Browse files
committed
Add customClass to bar hover hint
Updated the bar mouseover hint to also include the customClass. This will give developers more control over the color of the hover. Currently is defaults to a yellow. Now developers can customize the color of the hover based on the gantt Color passed in to the values.
1 parent 94230e4 commit 63f711c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/jquery.fn.gantt.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -947,7 +947,7 @@
947947
if (desc) {
948948
bar
949949
.mouseover(function (e) {
950-
var hint = $('<div class="fn-gantt-hint" />').html(desc);
950+
var hint = $('<div class="fn-gantt-hint" />').addClass(cls).html(desc);
951951
$("body").append(hint);
952952
hint.css("left", e.pageX);
953953
hint.css("top", e.pageY);

0 commit comments

Comments
 (0)