Skip to content

Commit

Permalink
Tabs: Update ajax demo to use beforeLoad event instead of deprecated …
Browse files Browse the repository at this point in the history
…ajaxOptions option.
  • Loading branch information
scottgonzalez committed Apr 11, 2011
1 parent ccac8cd commit a337006
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions demos/tabs/ajax.html
Original file line number Diff line number Diff line change
Expand Up @@ -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." );
}
});
}
});
});
Expand Down

0 comments on commit a337006

Please sign in to comment.