diff options
Diffstat (limited to '')
-rw-r--r-- | themes/default/js/ui/jquery.ui.tabs.js | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/themes/default/js/ui/jquery.ui.tabs.js b/themes/default/js/ui/jquery.ui.tabs.js index 87af8bfef..1cc0e2c30 100644 --- a/themes/default/js/ui/jquery.ui.tabs.js +++ b/themes/default/js/ui/jquery.ui.tabs.js @@ -1,8 +1,8 @@ /*! - * jQuery UI Tabs 1.10.1 + * jQuery UI Tabs 1.10.4 * http://jqueryui.com * - * Copyright 2013 jQuery Foundation and other contributors + * Copyright 2014 jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license * @@ -22,13 +22,17 @@ function getNextTabId() { } function isLocal( anchor ) { + // support: IE7 + // IE7 doesn't normalize the href property when set via script (#9317) + anchor = anchor.cloneNode( false ); + return anchor.hash.length > 1 && decodeURIComponent( anchor.href.replace( rhash, "" ) ) === decodeURIComponent( location.href.replace( rhash, "" ) ); } $.widget( "ui.tabs", { - version: "1.10.1", + version: "1.10.4", delay: 300, options: { active: null, @@ -150,7 +154,6 @@ $.widget( "ui.tabs", { }, _tabKeydown: function( event ) { - /*jshint maxcomplexity:15*/ var focusedTab = $( this.document[0].activeElement ).closest( "li" ), selectedIndex = this.tabs.index( focusedTab ), goingForward = true; @@ -438,7 +441,7 @@ $.widget( "ui.tabs", { // allow overriding how to find the list for rare usage scenarios (#7715) _getList: function() { - return this.element.find( "ol,ul" ).eq( 0 ); + return this.tablist || this.element.find( "ol,ul" ).eq( 0 ); }, _createPanel: function( id ) { |