Skip to content
Permalink
Browse files

Tabs: Update ajax demo to use beforeLoad event instead of deprecated …

…ajaxOptions option.
  • Loading branch information
scottgonzalez committed Apr 11, 2011
1 parent ccac8cd commit a3370064d85b30d89846efde00e461a2d493dfda
Showing with 4 additions and 5 deletions.
  1. +4 −5 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." );
}
});
}
});
});

0 comments on commit a337006

Please sign in to comment.
You can’t perform that action at this time.