mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Tabs: Update ajax demo to use beforeLoad event instead of deprecated ajaxOptions option.
This commit is contained in:
parent
ccac8cd492
commit
a3370064d8
@ -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." );
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user