Tabs: Update ajax demo to use beforeLoad event instead of deprecated ajaxOptions option.

This commit is contained in:
Scott González 2011-04-11 10:39:33 -04:00
parent ccac8cd492
commit a3370064d8

View File

@ -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." );
}
});
}
});
});