mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-04 02:09:22 +02:00
This commit is contained in:
parent
a8e3c8c7a3
commit
43af632a28
2986 changed files with 50716 additions and 116930 deletions
20
node_modules/jquery-ui/ui/widgets/tabs.js
generated
vendored
20
node_modules/jquery-ui/ui/widgets/tabs.js
generated
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* jQuery UI Tabs 1.14.0
|
||||
* jQuery UI Tabs 1.14.1
|
||||
* https://jqueryui.com
|
||||
*
|
||||
* Copyright OpenJS Foundation and other contributors
|
||||
|
@ -38,7 +38,7 @@
|
|||
"use strict";
|
||||
|
||||
$.widget( "ui.tabs", {
|
||||
version: "1.14.0",
|
||||
version: "1.14.1",
|
||||
delay: 300,
|
||||
options: {
|
||||
active: null,
|
||||
|
@ -121,14 +121,14 @@ $.widget( "ui.tabs", {
|
|||
_initialActive: function() {
|
||||
var active = this.options.active,
|
||||
collapsible = this.options.collapsible,
|
||||
locationHash = location.hash.substring( 1 );
|
||||
locationHashDecoded = decodeURIComponent( location.hash.substring( 1 ) );
|
||||
|
||||
if ( active === null ) {
|
||||
|
||||
// check the fragment identifier in the URL
|
||||
if ( locationHash ) {
|
||||
if ( locationHashDecoded ) {
|
||||
this.tabs.each( function( i, tab ) {
|
||||
if ( $( tab ).attr( "aria-controls" ) === locationHash ) {
|
||||
if ( $( tab ).attr( "aria-controls" ) === locationHashDecoded ) {
|
||||
active = i;
|
||||
return false;
|
||||
}
|
||||
|
@ -312,10 +312,6 @@ $.widget( "ui.tabs", {
|
|||
}
|
||||
},
|
||||
|
||||
_sanitizeSelector: function( hash ) {
|
||||
return hash ? hash.replace( /[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g, "\\$&" ) : "";
|
||||
},
|
||||
|
||||
refresh: function() {
|
||||
var options = this.options,
|
||||
lis = this.tablist.children( ":has(a[href])" );
|
||||
|
@ -434,9 +430,9 @@ $.widget( "ui.tabs", {
|
|||
|
||||
// Inline tab
|
||||
if ( that._isLocal( anchor ) ) {
|
||||
selector = anchor.hash;
|
||||
selector = decodeURIComponent( anchor.hash );
|
||||
panelId = selector.substring( 1 );
|
||||
panel = that.element.find( that._sanitizeSelector( selector ) );
|
||||
panel = that.element.find( "#" + CSS.escape( panelId ) );
|
||||
|
||||
// remote tab
|
||||
} else {
|
||||
|
@ -874,7 +870,7 @@ $.widget( "ui.tabs", {
|
|||
|
||||
_getPanelForTab: function( tab ) {
|
||||
var id = $( tab ).attr( "aria-controls" );
|
||||
return this.element.find( this._sanitizeSelector( "#" + id ) );
|
||||
return this.element.find( "#" + CSS.escape( id ) );
|
||||
}
|
||||
} );
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue