Skip to content

Commit

Permalink
Add customClass to bar hover hint
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jlorenzen committed Oct 7, 2013
1 parent 94230e4 commit 63f711c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/jquery.fn.gantt.js
Original file line number Diff line number Diff line change
Expand Up @@ -947,7 +947,7 @@
if (desc) {
bar
.mouseover(function (e) {
var hint = $('<div class="fn-gantt-hint" />').html(desc);
var hint = $('<div class="fn-gantt-hint" />').addClass(cls).html(desc);
$("body").append(hint);
hint.css("left", e.pageX);
hint.css("top", e.pageY);
Expand Down

0 comments on commit 63f711c

Please sign in to comment.