Ticket #4451: jquery.ui.tabs.js-4451.patch

File jquery.ui.tabs.js-4451.patch, 1007 bytes (added by andrew.sharpe.7.9, 2 years ago)
  • ui/jquery.ui.tabs.js

     
    583583                                        o.ajaxOptions.success(r, s); 
    584584                                } 
    585585                                catch (e) {} 
     586                        }, 
     587                        error: function(xhr, s, e) { 
     588                                // take care of tab labels 
     589                                self._cleanup(); 
    586590 
    587                                 // last, so that load event is fired before show... 
    588                                 self.element.dequeue("tabs"); 
     591                                // callbacks 
     592                                self._trigger('load', null, self._ui(self.anchors[index], self.panels[index])); 
     593                                try { 
     594                                        // Passing index avoid a race condition when this method is 
     595                                        // called after the user has selected another tab. 
     596                                        // Pass the anchor that initiated this request allows 
     597                                        // loadError to manipulate the tab content panel via $(a.hash) 
     598                                        o.loadError(xhr, s, e, index, a); 
     599                                } 
     600                                catch (e) {} 
    589601                        } 
    590602                })); 
    591603 
     604                // last, so that load event is fired before show... 
     605                self.element.dequeue("tabs"); 
     606 
    592607                return this; 
    593608        }, 
    594609