aboutsummaryrefslogtreecommitdiffstats
path: root/demos/tabs
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2015-02-23 14:55:25 -0500
committerScott González <scott.gonzalez@gmail.com>2015-02-24 10:24:58 -0500
commitc1dfb98d4576901aacf35f99d2506e8f652c2690 (patch)
treeb42299ce89bedfb437433d48fcdf5f1a636331ce /demos/tabs
parent962e05dc1d0a51a7458bc44725417aa3462cd89a (diff)
downloadjquery-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.html2
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." );