Skip to main content

Search and Top Navigation

Ticket #5070: jquery-ui-tabs-context.js.2.patch
File jquery-ui-tabs-context.js.2.patch, 0.5 KB (added by snover, January 17, 2010 06:34AM UTC)

Add tabserror event instead of setting a context

Index: jquery.ui.tabs.js
===================================================================
--- jquery.ui.tabs.js	(revision 3691)
+++ jquery.ui.tabs.js	(working copy)
@@ -567,6 +567,14 @@
 
 		this.xhr = $.ajax($.extend({}, o.ajaxOptions, {
 			url: url,
+			error: function(r, s) {
+				self._trigger('error', null, self._ui(self.anchors[index], self.panels[index]));
+				
+				try {
+					o.ajaxOptions.error(r, s);
+				}
+				catch(e) {}
+			},
 			success: function(r, s) {
 				$(self._sanitizeSelector(a.hash)).html(r);

Download in other formats:

Original Format