From c1dfb98d4576901aacf35f99d2506e8f652c2690 Mon Sep 17 00:00:00 2001 From: Scott González Date: Mon, 23 Feb 2015 14:55:25 -0500 Subject: 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 --- demos/tabs/ajax.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'demos/tabs') 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." ); -- cgit v1.2.3