mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Tabs: Update manipulation demo - use delegate instead of live (can't use on until we drop core 1.6 support), reuse selected element
This commit is contained in:
parent
6da708ef8e
commit
55ebc95879
@ -75,7 +75,7 @@
|
||||
});
|
||||
|
||||
// close icon: removing the tab on click
|
||||
$( "#tabs span.ui-icon-close" ).live( "click", function() {
|
||||
tabs.delegate( "span.ui-icon-close", "click", function() {
|
||||
var panelId = $( this ).closest( "li" ).remove().attr( "aria-controls" );
|
||||
$( "#" + panelId ).remove();
|
||||
tabs.tabs( "refresh" );
|
||||
|
Loading…
Reference in New Issue
Block a user