aboutsummaryrefslogtreecommitdiffstats
path: root/demos/tabs
diff options
context:
space:
mode:
authorDavid Petersen <public@petersendidit.com>2011-03-26 22:14:17 -0400
committerDavid Petersen <public@petersendidit.com>2011-03-27 14:56:20 -0400
commit1e2d3145fff7cdeca61e62f95eb1e30c37e664c5 (patch)
tree2ffd09f0bfb1a18b01b89c08123ad8d84a0e89cd /demos/tabs
parentf6e7b6c9f6b49e4c7ab648bd617fe724ce0fb417 (diff)
downloadjquery-ui-1e2d3145fff7cdeca61e62f95eb1e30c37e664c5.tar.gz
jquery-ui-1e2d3145fff7cdeca61e62f95eb1e30c37e664c5.zip
Tabs: Deprecate url method; use aria-controls instead of title to specify panels. Fixes #7132 Tabs: Deprecate url method; use aria-controls instead of title to specify panels
Diffstat (limited to 'demos/tabs')
-rw-r--r--demos/tabs/ajax.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/demos/tabs/ajax.html b/demos/tabs/ajax.html
index c62625791..284de57f9 100644
--- a/demos/tabs/ajax.html
+++ b/demos/tabs/ajax.html
@@ -14,7 +14,8 @@
$( "#tabs" ).tabs({
ajaxOptions: {
error: function( xhr, status, index, anchor ) {
- $( anchor.hash ).html(
+ var selector = $( anchor ).attr( "aria-controls" );
+ $( selector ).html(
"Couldn't load this tab. We'll try to fix this as soon as possible. " +
"If this wouldn't be a demo." );
}