mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Tabs manipulation demo: Update for aria-controls.
This commit is contained in:
parent
5c9d9f9e9d
commit
3ccf86cffb
@ -76,8 +76,8 @@
|
||||
|
||||
// close icon: removing the tab on click
|
||||
$( "#tabs span.ui-icon-close" ).live( "click", function() {
|
||||
$( this ).closest( "li" ).remove();
|
||||
$( "#" + $( this ).prev().attr( "aria-controls" ) ).remove();
|
||||
var panelId = $( this ).closest( "li" ).remove().attr( "aria-controls" );
|
||||
$( "#" + panelId ).remove();
|
||||
tabs.tabs( "refresh" );
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user