diff options
-rw-r--r-- | demos/tabs/ajax.html | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/demos/tabs/ajax.html b/demos/tabs/ajax.html index 284de57f9..407914589 100644 --- a/demos/tabs/ajax.html +++ b/demos/tabs/ajax.html @@ -12,13 +12,12 @@ <script> $(function() { $( "#tabs" ).tabs({ - ajaxOptions: { - error: function( xhr, status, index, anchor ) { - var selector = $( anchor ).attr( "aria-controls" ); - $( selector ).html( + beforeLoad: function( event, ui ) { + ui.jqXHR.error(function() { + ui.panel.html( "Couldn't load this tab. We'll try to fix this as soon as possible. " + "If this wouldn't be a demo." ); - } + }); } }); }); |