Skip to content

Commit

Permalink
[ui,cwd] fix hover of cwd
Browse files Browse the repository at this point in the history
  • Loading branch information
nao-pon committed Dec 13, 2013
1 parent c54b8c1 commit 40d30e2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/ui/cwd.js
Original file line number Diff line number Diff line change
Expand Up @@ -791,8 +791,9 @@ $.fn.elfindercwd = function(fm, options) {
.delegate(fileSelector, 'scrolltoview', function() {
scrollToView($(this));
})
.delegate(fileSelector, 'hover', function(e) {
.delegate(fileSelector, 'mouseenter.'+fm.namespace+' mouseleave.'+fm.namespace, function(e) {
fm.trigger('hover', {hash : $(this).attr('id'), type : e.type});
$(this).toggleClass('ui-state-hover');
})
.bind('contextmenu.'+fm.namespace, function(e) {
var file = $(e.target).closest('.'+clFile);
Expand Down

0 comments on commit 40d30e2

Please sign in to comment.