mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Calendar: Fix hover event setting and removing
This commit is contained in:
parent
b9d8f624ba
commit
2e2787dcfe
@ -73,8 +73,7 @@ return $.widget( "ui.calendar", {
|
|||||||
"keydown .ui-calendar-calendar": "_handleKeydown"
|
"keydown .ui-calendar-calendar": "_handleKeydown"
|
||||||
});
|
});
|
||||||
|
|
||||||
// TODO Use hoverable (no delegation support)? convert to _on?
|
this.element.on( "mouseenter.calendar mouseleave.calendar", ".ui-calendar-header button, .ui-calendar-calendar a", function() {
|
||||||
this.element.delegate( ".ui-calendar-header button, .ui-calendar-calendar a", "mouseenter.calendar mouseleave.calendar", function() {
|
|
||||||
$( this ).toggleClass( "ui-state-hover" );
|
$( this ).toggleClass( "ui-state-hover" );
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user