mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update components
This commit is contained in:
parent
84945cabc4
commit
ab2d2eaf94
111 changed files with 4302 additions and 3100 deletions
|
@ -2,6 +2,8 @@ define( [
|
|||
"../ajax"
|
||||
], function( jQuery ) {
|
||||
|
||||
"use strict";
|
||||
|
||||
jQuery._evalUrl = function( url ) {
|
||||
return jQuery.ajax( {
|
||||
url: url,
|
||||
|
@ -9,6 +11,7 @@ jQuery._evalUrl = function( url ) {
|
|||
// Make this explicit, since user can override this through ajaxSetup (#11264)
|
||||
type: "GET",
|
||||
dataType: "script",
|
||||
cache: true,
|
||||
async: false,
|
||||
global: false,
|
||||
"throws": true
|
||||
|
|
|
@ -7,6 +7,8 @@ define( [
|
|||
"./setGlobalEval"
|
||||
], function( jQuery, rtagName, rscriptType, wrapMap, getAll, setGlobalEval ) {
|
||||
|
||||
"use strict";
|
||||
|
||||
var rhtml = /<|&#?\w+;/;
|
||||
|
||||
function buildFragment( elems, context, scripts, selection, ignored ) {
|
||||
|
@ -24,7 +26,7 @@ function buildFragment( elems, context, scripts, selection, ignored ) {
|
|||
// Add nodes directly
|
||||
if ( jQuery.type( elem ) === "object" ) {
|
||||
|
||||
// Support: Android<4.1, PhantomJS<2
|
||||
// Support: Android <=4.0 only, PhantomJS 1 only
|
||||
// push.apply(_, arraylike) throws on ancient WebKit
|
||||
jQuery.merge( nodes, elem.nodeType ? [ elem ] : elem );
|
||||
|
||||
|
@ -47,7 +49,7 @@ function buildFragment( elems, context, scripts, selection, ignored ) {
|
|||
tmp = tmp.lastChild;
|
||||
}
|
||||
|
||||
// Support: Android<4.1, PhantomJS<2
|
||||
// Support: Android <=4.0 only, PhantomJS 1 only
|
||||
// push.apply(_, arraylike) throws on ancient WebKit
|
||||
jQuery.merge( nodes, tmp.childNodes );
|
||||
|
||||
|
|
|
@ -1,20 +0,0 @@
|
|||
define( [
|
||||
"./var/nodeNames"
|
||||
], function( nodeNames ) {
|
||||
|
||||
function createSafeFragment( document ) {
|
||||
var list = nodeNames.split( "|" ),
|
||||
safeFrag = document.createDocumentFragment();
|
||||
|
||||
if ( safeFrag.createElement ) {
|
||||
while ( list.length ) {
|
||||
safeFrag.createElement(
|
||||
list.pop()
|
||||
);
|
||||
}
|
||||
}
|
||||
return safeFrag;
|
||||
}
|
||||
|
||||
return createSafeFragment;
|
||||
} );
|
|
@ -2,9 +2,11 @@ define( [
|
|||
"../core"
|
||||
], function( jQuery ) {
|
||||
|
||||
"use strict";
|
||||
|
||||
function getAll( context, tag ) {
|
||||
|
||||
// Support: IE9-11+
|
||||
// Support: IE <=9 - 11 only
|
||||
// Use typeof to avoid zero-argument method invocation on host objects (#15151)
|
||||
var ret = typeof context.getElementsByTagName !== "undefined" ?
|
||||
context.getElementsByTagName( tag || "*" ) :
|
||||
|
|
|
@ -2,6 +2,8 @@ define( [
|
|||
"../data/var/dataPriv"
|
||||
], function( dataPriv ) {
|
||||
|
||||
"use strict";
|
||||
|
||||
// Mark scripts as having already been evaluated
|
||||
function setGlobalEval( elems, refElements ) {
|
||||
var i = 0,
|
||||
|
|
|
@ -3,12 +3,14 @@ define( [
|
|||
"../var/support"
|
||||
], function( document, support ) {
|
||||
|
||||
"use strict";
|
||||
|
||||
( function() {
|
||||
var fragment = document.createDocumentFragment(),
|
||||
div = fragment.appendChild( document.createElement( "div" ) ),
|
||||
input = document.createElement( "input" );
|
||||
|
||||
// Support: Android 4.0-4.3, Safari<=5.1
|
||||
// Support: Android 4.0 - 4.3 only
|
||||
// Check state lost if the name is set (#11217)
|
||||
// Support: Windows Web Apps (WWA)
|
||||
// `name` and `type` must use .setAttribute for WWA (#14901)
|
||||
|
@ -18,11 +20,11 @@ define( [
|
|||
|
||||
div.appendChild( input );
|
||||
|
||||
// Support: Safari<=5.1, Android<4.2
|
||||
// Support: Android <=4.1 only
|
||||
// Older WebKit doesn't clone checked state correctly in fragments
|
||||
support.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked;
|
||||
|
||||
// Support: IE<=11+
|
||||
// Support: IE <=11 only
|
||||
// Make sure textarea (and checkbox) defaultValue is properly cloned
|
||||
div.innerHTML = "<textarea>x</textarea>";
|
||||
support.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue;
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
define( function() {
|
||||
|
||||
"use strict";
|
||||
|
||||
// We have to close these tags to support XHTML (#13200)
|
||||
var wrapMap = {
|
||||
|
||||
// Support: IE9
|
||||
// Support: IE <=9 only
|
||||
option: [ 1, "<select multiple='multiple'>", "</select>" ],
|
||||
|
||||
// XHTML parsers do not magically insert elements in the
|
||||
|
@ -17,7 +19,7 @@ var wrapMap = {
|
|||
_default: [ 0, "", "" ]
|
||||
};
|
||||
|
||||
// Support: IE9
|
||||
// Support: IE <=9 only
|
||||
wrapMap.optgroup = wrapMap.option;
|
||||
|
||||
wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue