Tabs manipulation demo: Update for aria-controls.

This commit is contained in:
Scott González 2012-05-18 16:18:46 -04:00
parent 5c9d9f9e9d
commit 3ccf86cffb

View File

@ -76,8 +76,8 @@
// close icon: removing the tab on click // close icon: removing the tab on click
$( "#tabs span.ui-icon-close" ).live( "click", function() { $( "#tabs span.ui-icon-close" ).live( "click", function() {
$( this ).closest( "li" ).remove(); var panelId = $( this ).closest( "li" ).remove().attr( "aria-controls" );
$( "#" + $( this ).prev().attr( "aria-controls" ) ).remove(); $( "#" + panelId ).remove();
tabs.tabs( "refresh" ); tabs.tabs( "refresh" );
}); });
}); });