diff options
author | Scott González <scott.gonzalez@gmail.com> | 2015-02-23 14:55:25 -0500 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2015-02-24 10:24:58 -0500 |
commit | c1dfb98d4576901aacf35f99d2506e8f652c2690 (patch) | |
tree | b42299ce89bedfb437433d48fcdf5f1a636331ce /demos/tabs | |
parent | 962e05dc1d0a51a7458bc44725417aa3462cd89a (diff) | |
download | jquery-ui-c1dfb98d4576901aacf35f99d2506e8f652c2690.tar.gz jquery-ui-c1dfb98d4576901aacf35f99d2506e8f652c2690.zip |
Tabs: Use standard promise methods for jqXHR
The old success(), error() and complete() methods have been deprecated for a
while and have been removed in upstream master.
Closes gh-1455
Diffstat (limited to 'demos/tabs')
-rw-r--r-- | demos/tabs/ajax.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/tabs/ajax.html b/demos/tabs/ajax.html index ba766dd29..7a486fc96 100644 --- a/demos/tabs/ajax.html +++ b/demos/tabs/ajax.html @@ -13,7 +13,7 @@ $(function() { $( "#tabs" ).tabs({ beforeLoad: function( event, ui ) { - ui.jqXHR.error(function() { + ui.jqXHR.fail(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." ); |