Skip to content

Commit

Permalink
Fix table + themeroller: apply color to TR
Browse files Browse the repository at this point in the history
Close #415
  • Loading branch information
mar10 committed May 14, 2015
1 parent 3c1d514 commit 6cbb5cf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# 2.9.1-0 / Unreleased
* [Fixed] #427 selected and unselectable shows unchecked checkbox
* [Fixed] #415 selected and unselectable shows unchecked checkbox
* [Fixed] #427 table + themeroller: apply color to TR
* [Improved] Update to jQuery UI 1.11.4, jQuery 1.11.3

# 2.9.0 / 2015-04-19
Expand Down
5 changes: 2 additions & 3 deletions src/jquery.fancytree.themeroller.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ $.ui.fancytree.registerExtension({
var node = $.ui.fancytree.getNode(event.target),
flag = (event.type === "mouseenter");
node.debug("hover: " + flag);
$(node.span).toggleClass("ui-state-hover ui-corner-all", flag);
$(node.tr ? node.tr : node.span).toggleClass("ui-state-hover ui-corner-all", flag);
});
},
treeDestroy: function(ctx){
Expand All @@ -58,7 +58,7 @@ $.ui.fancytree.registerExtension({
},
nodeRenderStatus: function(ctx){
var node = ctx.node,
$el = $(node.span);
$el = $(node.tr ? node.tr : node.span);
this._superApply(arguments);
/*
.ui-state-highlight: Class to be applied to highlighted or selected elements. Applies "highlight" container styles to an element and its child text, links, and icons.
Expand All @@ -73,7 +73,6 @@ $.ui.fancytree.registerExtension({
$el.toggleClass("ui-state-active", node.isActive());
$el.toggleClass("ui-state-focus", node.hasFocus());
$el.toggleClass("ui-state-highlight", node.isSelected());
// node.debug("ext-themeroller.nodeRenderStatus: ", node.span.className);
}
});
}(jQuery, window, document));

0 comments on commit 6cbb5cf

Please sign in to comment.