mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-04-20 03:02:41 -04:00
Tabs: Update ajax demo to use beforeLoad event instead of deprecated ajaxOptions option.
This commit is contained in:
@@ -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." );
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user