aboutsummaryrefslogtreecommitdiffstats
path: root/demos/tabs
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2012-05-18 16:18:46 -0400
committerScott González <scott.gonzalez@gmail.com>2012-05-18 16:18:46 -0400
commit3ccf86cffb61b83a5f9917053b720ecb6e3b51e7 (patch)
tree1791260fb4bd2be3624ee985c5d182ce4a31418d /demos/tabs
parent5c9d9f9e9dc852ea37b7acc8c6a758f1901aa6a6 (diff)
downloadjquery-ui-3ccf86cffb61b83a5f9917053b720ecb6e3b51e7.tar.gz
jquery-ui-3ccf86cffb61b83a5f9917053b720ecb6e3b51e7.zip
Tabs manipulation demo: Update for aria-controls.
Diffstat (limited to 'demos/tabs')
-rw-r--r--demos/tabs/manipulation.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/demos/tabs/manipulation.html b/demos/tabs/manipulation.html
index 205fc2e4d..085d42c43 100644
--- a/demos/tabs/manipulation.html
+++ b/demos/tabs/manipulation.html
@@ -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" );
});
});