Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/clone/wp-inclu.../js/jquery
File: jquery.js
// Or just use first one
[9000] Fix | Delete
finalDataType = finalDataType || firstDataType;
[9001] Fix | Delete
}
[9002] Fix | Delete
[9003] Fix | Delete
// If we found a dataType
[9004] Fix | Delete
// We add the dataType to the list if needed
[9005] Fix | Delete
// and return the corresponding response
[9006] Fix | Delete
if ( finalDataType ) {
[9007] Fix | Delete
if ( finalDataType !== dataTypes[ 0 ] ) {
[9008] Fix | Delete
dataTypes.unshift( finalDataType );
[9009] Fix | Delete
}
[9010] Fix | Delete
return responses[ finalDataType ];
[9011] Fix | Delete
}
[9012] Fix | Delete
}
[9013] Fix | Delete
[9014] Fix | Delete
/* Chain conversions given the request and the original response
[9015] Fix | Delete
* Also sets the responseXXX fields on the jqXHR instance
[9016] Fix | Delete
*/
[9017] Fix | Delete
function ajaxConvert( s, response, jqXHR, isSuccess ) {
[9018] Fix | Delete
var conv2, current, conv, tmp, prev,
[9019] Fix | Delete
converters = {},
[9020] Fix | Delete
[9021] Fix | Delete
// Work with a copy of dataTypes in case we need to modify it for conversion
[9022] Fix | Delete
dataTypes = s.dataTypes.slice();
[9023] Fix | Delete
[9024] Fix | Delete
// Create converters map with lowercased keys
[9025] Fix | Delete
if ( dataTypes[ 1 ] ) {
[9026] Fix | Delete
for ( conv in s.converters ) {
[9027] Fix | Delete
converters[ conv.toLowerCase() ] = s.converters[ conv ];
[9028] Fix | Delete
}
[9029] Fix | Delete
}
[9030] Fix | Delete
[9031] Fix | Delete
current = dataTypes.shift();
[9032] Fix | Delete
[9033] Fix | Delete
// Convert to each sequential dataType
[9034] Fix | Delete
while ( current ) {
[9035] Fix | Delete
[9036] Fix | Delete
if ( s.responseFields[ current ] ) {
[9037] Fix | Delete
jqXHR[ s.responseFields[ current ] ] = response;
[9038] Fix | Delete
}
[9039] Fix | Delete
[9040] Fix | Delete
// Apply the dataFilter if provided
[9041] Fix | Delete
if ( !prev && isSuccess && s.dataFilter ) {
[9042] Fix | Delete
response = s.dataFilter( response, s.dataType );
[9043] Fix | Delete
}
[9044] Fix | Delete
[9045] Fix | Delete
prev = current;
[9046] Fix | Delete
current = dataTypes.shift();
[9047] Fix | Delete
[9048] Fix | Delete
if ( current ) {
[9049] Fix | Delete
[9050] Fix | Delete
// There's only work to do if current dataType is non-auto
[9051] Fix | Delete
if ( current === "*" ) {
[9052] Fix | Delete
[9053] Fix | Delete
current = prev;
[9054] Fix | Delete
[9055] Fix | Delete
// Convert response if prev dataType is non-auto and differs from current
[9056] Fix | Delete
} else if ( prev !== "*" && prev !== current ) {
[9057] Fix | Delete
[9058] Fix | Delete
// Seek a direct converter
[9059] Fix | Delete
conv = converters[ prev + " " + current ] || converters[ "* " + current ];
[9060] Fix | Delete
[9061] Fix | Delete
// If none found, seek a pair
[9062] Fix | Delete
if ( !conv ) {
[9063] Fix | Delete
for ( conv2 in converters ) {
[9064] Fix | Delete
[9065] Fix | Delete
// If conv2 outputs current
[9066] Fix | Delete
tmp = conv2.split( " " );
[9067] Fix | Delete
if ( tmp[ 1 ] === current ) {
[9068] Fix | Delete
[9069] Fix | Delete
// If prev can be converted to accepted input
[9070] Fix | Delete
conv = converters[ prev + " " + tmp[ 0 ] ] ||
[9071] Fix | Delete
converters[ "* " + tmp[ 0 ] ];
[9072] Fix | Delete
if ( conv ) {
[9073] Fix | Delete
[9074] Fix | Delete
// Condense equivalence converters
[9075] Fix | Delete
if ( conv === true ) {
[9076] Fix | Delete
conv = converters[ conv2 ];
[9077] Fix | Delete
[9078] Fix | Delete
// Otherwise, insert the intermediate dataType
[9079] Fix | Delete
} else if ( converters[ conv2 ] !== true ) {
[9080] Fix | Delete
current = tmp[ 0 ];
[9081] Fix | Delete
dataTypes.unshift( tmp[ 1 ] );
[9082] Fix | Delete
}
[9083] Fix | Delete
break;
[9084] Fix | Delete
}
[9085] Fix | Delete
}
[9086] Fix | Delete
}
[9087] Fix | Delete
}
[9088] Fix | Delete
[9089] Fix | Delete
// Apply converter (if not an equivalence)
[9090] Fix | Delete
if ( conv !== true ) {
[9091] Fix | Delete
[9092] Fix | Delete
// Unless errors are allowed to bubble, catch and return them
[9093] Fix | Delete
if ( conv && s.throws ) {
[9094] Fix | Delete
response = conv( response );
[9095] Fix | Delete
} else {
[9096] Fix | Delete
try {
[9097] Fix | Delete
response = conv( response );
[9098] Fix | Delete
} catch ( e ) {
[9099] Fix | Delete
return {
[9100] Fix | Delete
state: "parsererror",
[9101] Fix | Delete
error: conv ? e : "No conversion from " + prev + " to " + current
[9102] Fix | Delete
};
[9103] Fix | Delete
}
[9104] Fix | Delete
}
[9105] Fix | Delete
}
[9106] Fix | Delete
}
[9107] Fix | Delete
}
[9108] Fix | Delete
}
[9109] Fix | Delete
[9110] Fix | Delete
return { state: "success", data: response };
[9111] Fix | Delete
}
[9112] Fix | Delete
[9113] Fix | Delete
jQuery.extend( {
[9114] Fix | Delete
[9115] Fix | Delete
// Counter for holding the number of active queries
[9116] Fix | Delete
active: 0,
[9117] Fix | Delete
[9118] Fix | Delete
// Last-Modified header cache for next request
[9119] Fix | Delete
lastModified: {},
[9120] Fix | Delete
etag: {},
[9121] Fix | Delete
[9122] Fix | Delete
ajaxSettings: {
[9123] Fix | Delete
url: location.href,
[9124] Fix | Delete
type: "GET",
[9125] Fix | Delete
isLocal: rlocalProtocol.test( location.protocol ),
[9126] Fix | Delete
global: true,
[9127] Fix | Delete
processData: true,
[9128] Fix | Delete
async: true,
[9129] Fix | Delete
contentType: "application/x-www-form-urlencoded; charset=UTF-8",
[9130] Fix | Delete
[9131] Fix | Delete
/*
[9132] Fix | Delete
timeout: 0,
[9133] Fix | Delete
data: null,
[9134] Fix | Delete
dataType: null,
[9135] Fix | Delete
username: null,
[9136] Fix | Delete
password: null,
[9137] Fix | Delete
cache: null,
[9138] Fix | Delete
throws: false,
[9139] Fix | Delete
traditional: false,
[9140] Fix | Delete
headers: {},
[9141] Fix | Delete
*/
[9142] Fix | Delete
[9143] Fix | Delete
accepts: {
[9144] Fix | Delete
"*": allTypes,
[9145] Fix | Delete
text: "text/plain",
[9146] Fix | Delete
html: "text/html",
[9147] Fix | Delete
xml: "application/xml, text/xml",
[9148] Fix | Delete
json: "application/json, text/javascript"
[9149] Fix | Delete
},
[9150] Fix | Delete
[9151] Fix | Delete
contents: {
[9152] Fix | Delete
xml: /\bxml\b/,
[9153] Fix | Delete
html: /\bhtml/,
[9154] Fix | Delete
json: /\bjson\b/
[9155] Fix | Delete
},
[9156] Fix | Delete
[9157] Fix | Delete
responseFields: {
[9158] Fix | Delete
xml: "responseXML",
[9159] Fix | Delete
text: "responseText",
[9160] Fix | Delete
json: "responseJSON"
[9161] Fix | Delete
},
[9162] Fix | Delete
[9163] Fix | Delete
// Data converters
[9164] Fix | Delete
// Keys separate source (or catchall "*") and destination types with a single space
[9165] Fix | Delete
converters: {
[9166] Fix | Delete
[9167] Fix | Delete
// Convert anything to text
[9168] Fix | Delete
"* text": String,
[9169] Fix | Delete
[9170] Fix | Delete
// Text to html (true = no transformation)
[9171] Fix | Delete
"text html": true,
[9172] Fix | Delete
[9173] Fix | Delete
// Evaluate text as a json expression
[9174] Fix | Delete
"text json": JSON.parse,
[9175] Fix | Delete
[9176] Fix | Delete
// Parse text as xml
[9177] Fix | Delete
"text xml": jQuery.parseXML
[9178] Fix | Delete
},
[9179] Fix | Delete
[9180] Fix | Delete
// For options that shouldn't be deep extended:
[9181] Fix | Delete
// you can add your own custom options here if
[9182] Fix | Delete
// and when you create one that shouldn't be
[9183] Fix | Delete
// deep extended (see ajaxExtend)
[9184] Fix | Delete
flatOptions: {
[9185] Fix | Delete
url: true,
[9186] Fix | Delete
context: true
[9187] Fix | Delete
}
[9188] Fix | Delete
},
[9189] Fix | Delete
[9190] Fix | Delete
// Creates a full fledged settings object into target
[9191] Fix | Delete
// with both ajaxSettings and settings fields.
[9192] Fix | Delete
// If target is omitted, writes into ajaxSettings.
[9193] Fix | Delete
ajaxSetup: function( target, settings ) {
[9194] Fix | Delete
return settings ?
[9195] Fix | Delete
[9196] Fix | Delete
// Building a settings object
[9197] Fix | Delete
ajaxExtend( ajaxExtend( target, jQuery.ajaxSettings ), settings ) :
[9198] Fix | Delete
[9199] Fix | Delete
// Extending ajaxSettings
[9200] Fix | Delete
ajaxExtend( jQuery.ajaxSettings, target );
[9201] Fix | Delete
},
[9202] Fix | Delete
[9203] Fix | Delete
ajaxPrefilter: addToPrefiltersOrTransports( prefilters ),
[9204] Fix | Delete
ajaxTransport: addToPrefiltersOrTransports( transports ),
[9205] Fix | Delete
[9206] Fix | Delete
// Main method
[9207] Fix | Delete
ajax: function( url, options ) {
[9208] Fix | Delete
[9209] Fix | Delete
// If url is an object, simulate pre-1.5 signature
[9210] Fix | Delete
if ( typeof url === "object" ) {
[9211] Fix | Delete
options = url;
[9212] Fix | Delete
url = undefined;
[9213] Fix | Delete
}
[9214] Fix | Delete
[9215] Fix | Delete
// Force options to be an object
[9216] Fix | Delete
options = options || {};
[9217] Fix | Delete
[9218] Fix | Delete
var transport,
[9219] Fix | Delete
[9220] Fix | Delete
// URL without anti-cache param
[9221] Fix | Delete
cacheURL,
[9222] Fix | Delete
[9223] Fix | Delete
// Response headers
[9224] Fix | Delete
responseHeadersString,
[9225] Fix | Delete
responseHeaders,
[9226] Fix | Delete
[9227] Fix | Delete
// timeout handle
[9228] Fix | Delete
timeoutTimer,
[9229] Fix | Delete
[9230] Fix | Delete
// Url cleanup var
[9231] Fix | Delete
urlAnchor,
[9232] Fix | Delete
[9233] Fix | Delete
// Request state (becomes false upon send and true upon completion)
[9234] Fix | Delete
completed,
[9235] Fix | Delete
[9236] Fix | Delete
// To know if global events are to be dispatched
[9237] Fix | Delete
fireGlobals,
[9238] Fix | Delete
[9239] Fix | Delete
// Loop variable
[9240] Fix | Delete
i,
[9241] Fix | Delete
[9242] Fix | Delete
// uncached part of the url
[9243] Fix | Delete
uncached,
[9244] Fix | Delete
[9245] Fix | Delete
// Create the final options object
[9246] Fix | Delete
s = jQuery.ajaxSetup( {}, options ),
[9247] Fix | Delete
[9248] Fix | Delete
// Callbacks context
[9249] Fix | Delete
callbackContext = s.context || s,
[9250] Fix | Delete
[9251] Fix | Delete
// Context for global events is callbackContext if it is a DOM node or jQuery collection
[9252] Fix | Delete
globalEventContext = s.context &&
[9253] Fix | Delete
( callbackContext.nodeType || callbackContext.jquery ) ?
[9254] Fix | Delete
jQuery( callbackContext ) :
[9255] Fix | Delete
jQuery.event,
[9256] Fix | Delete
[9257] Fix | Delete
// Deferreds
[9258] Fix | Delete
deferred = jQuery.Deferred(),
[9259] Fix | Delete
completeDeferred = jQuery.Callbacks( "once memory" ),
[9260] Fix | Delete
[9261] Fix | Delete
// Status-dependent callbacks
[9262] Fix | Delete
statusCode = s.statusCode || {},
[9263] Fix | Delete
[9264] Fix | Delete
// Headers (they are sent all at once)
[9265] Fix | Delete
requestHeaders = {},
[9266] Fix | Delete
requestHeadersNames = {},
[9267] Fix | Delete
[9268] Fix | Delete
// Default abort message
[9269] Fix | Delete
strAbort = "canceled",
[9270] Fix | Delete
[9271] Fix | Delete
// Fake xhr
[9272] Fix | Delete
jqXHR = {
[9273] Fix | Delete
readyState: 0,
[9274] Fix | Delete
[9275] Fix | Delete
// Builds headers hashtable if needed
[9276] Fix | Delete
getResponseHeader: function( key ) {
[9277] Fix | Delete
var match;
[9278] Fix | Delete
if ( completed ) {
[9279] Fix | Delete
if ( !responseHeaders ) {
[9280] Fix | Delete
responseHeaders = {};
[9281] Fix | Delete
while ( ( match = rheaders.exec( responseHeadersString ) ) ) {
[9282] Fix | Delete
responseHeaders[ match[ 1 ].toLowerCase() + " " ] =
[9283] Fix | Delete
( responseHeaders[ match[ 1 ].toLowerCase() + " " ] || [] )
[9284] Fix | Delete
.concat( match[ 2 ] );
[9285] Fix | Delete
}
[9286] Fix | Delete
}
[9287] Fix | Delete
match = responseHeaders[ key.toLowerCase() + " " ];
[9288] Fix | Delete
}
[9289] Fix | Delete
return match == null ? null : match.join( ", " );
[9290] Fix | Delete
},
[9291] Fix | Delete
[9292] Fix | Delete
// Raw string
[9293] Fix | Delete
getAllResponseHeaders: function() {
[9294] Fix | Delete
return completed ? responseHeadersString : null;
[9295] Fix | Delete
},
[9296] Fix | Delete
[9297] Fix | Delete
// Caches the header
[9298] Fix | Delete
setRequestHeader: function( name, value ) {
[9299] Fix | Delete
if ( completed == null ) {
[9300] Fix | Delete
name = requestHeadersNames[ name.toLowerCase() ] =
[9301] Fix | Delete
requestHeadersNames[ name.toLowerCase() ] || name;
[9302] Fix | Delete
requestHeaders[ name ] = value;
[9303] Fix | Delete
}
[9304] Fix | Delete
return this;
[9305] Fix | Delete
},
[9306] Fix | Delete
[9307] Fix | Delete
// Overrides response content-type header
[9308] Fix | Delete
overrideMimeType: function( type ) {
[9309] Fix | Delete
if ( completed == null ) {
[9310] Fix | Delete
s.mimeType = type;
[9311] Fix | Delete
}
[9312] Fix | Delete
return this;
[9313] Fix | Delete
},
[9314] Fix | Delete
[9315] Fix | Delete
// Status-dependent callbacks
[9316] Fix | Delete
statusCode: function( map ) {
[9317] Fix | Delete
var code;
[9318] Fix | Delete
if ( map ) {
[9319] Fix | Delete
if ( completed ) {
[9320] Fix | Delete
[9321] Fix | Delete
// Execute the appropriate callbacks
[9322] Fix | Delete
jqXHR.always( map[ jqXHR.status ] );
[9323] Fix | Delete
} else {
[9324] Fix | Delete
[9325] Fix | Delete
// Lazy-add the new callbacks in a way that preserves old ones
[9326] Fix | Delete
for ( code in map ) {
[9327] Fix | Delete
statusCode[ code ] = [ statusCode[ code ], map[ code ] ];
[9328] Fix | Delete
}
[9329] Fix | Delete
}
[9330] Fix | Delete
}
[9331] Fix | Delete
return this;
[9332] Fix | Delete
},
[9333] Fix | Delete
[9334] Fix | Delete
// Cancel the request
[9335] Fix | Delete
abort: function( statusText ) {
[9336] Fix | Delete
var finalText = statusText || strAbort;
[9337] Fix | Delete
if ( transport ) {
[9338] Fix | Delete
transport.abort( finalText );
[9339] Fix | Delete
}
[9340] Fix | Delete
done( 0, finalText );
[9341] Fix | Delete
return this;
[9342] Fix | Delete
}
[9343] Fix | Delete
};
[9344] Fix | Delete
[9345] Fix | Delete
// Attach deferreds
[9346] Fix | Delete
deferred.promise( jqXHR );
[9347] Fix | Delete
[9348] Fix | Delete
// Add protocol if not provided (prefilters might expect it)
[9349] Fix | Delete
// Handle falsy url in the settings object (trac-10093: consistency with old signature)
[9350] Fix | Delete
// We also use the url parameter if available
[9351] Fix | Delete
s.url = ( ( url || s.url || location.href ) + "" )
[9352] Fix | Delete
.replace( rprotocol, location.protocol + "//" );
[9353] Fix | Delete
[9354] Fix | Delete
// Alias method option to type as per ticket trac-12004
[9355] Fix | Delete
s.type = options.method || options.type || s.method || s.type;
[9356] Fix | Delete
[9357] Fix | Delete
// Extract dataTypes list
[9358] Fix | Delete
s.dataTypes = ( s.dataType || "*" ).toLowerCase().match( rnothtmlwhite ) || [ "" ];
[9359] Fix | Delete
[9360] Fix | Delete
// A cross-domain request is in order when the origin doesn't match the current origin.
[9361] Fix | Delete
if ( s.crossDomain == null ) {
[9362] Fix | Delete
urlAnchor = document.createElement( "a" );
[9363] Fix | Delete
[9364] Fix | Delete
// Support: IE <=8 - 11, Edge 12 - 15
[9365] Fix | Delete
// IE throws exception on accessing the href property if url is malformed,
[9366] Fix | Delete
// e.g. http://example.com:80x/
[9367] Fix | Delete
try {
[9368] Fix | Delete
urlAnchor.href = s.url;
[9369] Fix | Delete
[9370] Fix | Delete
// Support: IE <=8 - 11 only
[9371] Fix | Delete
// Anchor's host property isn't correctly set when s.url is relative
[9372] Fix | Delete
urlAnchor.href = urlAnchor.href;
[9373] Fix | Delete
s.crossDomain = originAnchor.protocol + "//" + originAnchor.host !==
[9374] Fix | Delete
urlAnchor.protocol + "//" + urlAnchor.host;
[9375] Fix | Delete
} catch ( e ) {
[9376] Fix | Delete
[9377] Fix | Delete
// If there is an error parsing the URL, assume it is crossDomain,
[9378] Fix | Delete
// it can be rejected by the transport if it is invalid
[9379] Fix | Delete
s.crossDomain = true;
[9380] Fix | Delete
}
[9381] Fix | Delete
}
[9382] Fix | Delete
[9383] Fix | Delete
// Convert data if not already a string
[9384] Fix | Delete
if ( s.data && s.processData && typeof s.data !== "string" ) {
[9385] Fix | Delete
s.data = jQuery.param( s.data, s.traditional );
[9386] Fix | Delete
}
[9387] Fix | Delete
[9388] Fix | Delete
// Apply prefilters
[9389] Fix | Delete
inspectPrefiltersOrTransports( prefilters, s, options, jqXHR );
[9390] Fix | Delete
[9391] Fix | Delete
// If request was aborted inside a prefilter, stop there
[9392] Fix | Delete
if ( completed ) {
[9393] Fix | Delete
return jqXHR;
[9394] Fix | Delete
}
[9395] Fix | Delete
[9396] Fix | Delete
// We can fire global events as of now if asked to
[9397] Fix | Delete
// Don't fire events if jQuery.event is undefined in an AMD-usage scenario (trac-15118)
[9398] Fix | Delete
fireGlobals = jQuery.event && s.global;
[9399] Fix | Delete
[9400] Fix | Delete
// Watch for a new set of requests
[9401] Fix | Delete
if ( fireGlobals && jQuery.active++ === 0 ) {
[9402] Fix | Delete
jQuery.event.trigger( "ajaxStart" );
[9403] Fix | Delete
}
[9404] Fix | Delete
[9405] Fix | Delete
// Uppercase the type
[9406] Fix | Delete
s.type = s.type.toUpperCase();
[9407] Fix | Delete
[9408] Fix | Delete
// Determine if request has content
[9409] Fix | Delete
s.hasContent = !rnoContent.test( s.type );
[9410] Fix | Delete
[9411] Fix | Delete
// Save the URL in case we're toying with the If-Modified-Since
[9412] Fix | Delete
// and/or If-None-Match header later on
[9413] Fix | Delete
// Remove hash to simplify url manipulation
[9414] Fix | Delete
cacheURL = s.url.replace( rhash, "" );
[9415] Fix | Delete
[9416] Fix | Delete
// More options handling for requests with no content
[9417] Fix | Delete
if ( !s.hasContent ) {
[9418] Fix | Delete
[9419] Fix | Delete
// Remember the hash so we can put it back
[9420] Fix | Delete
uncached = s.url.slice( cacheURL.length );
[9421] Fix | Delete
[9422] Fix | Delete
// If data is available and should be processed, append data to url
[9423] Fix | Delete
if ( s.data && ( s.processData || typeof s.data === "string" ) ) {
[9424] Fix | Delete
cacheURL += ( rquery.test( cacheURL ) ? "&" : "?" ) + s.data;
[9425] Fix | Delete
[9426] Fix | Delete
// trac-9682: remove data so that it's not used in an eventual retry
[9427] Fix | Delete
delete s.data;
[9428] Fix | Delete
}
[9429] Fix | Delete
[9430] Fix | Delete
// Add or update anti-cache param if needed
[9431] Fix | Delete
if ( s.cache === false ) {
[9432] Fix | Delete
cacheURL = cacheURL.replace( rantiCache, "$1" );
[9433] Fix | Delete
uncached = ( rquery.test( cacheURL ) ? "&" : "?" ) + "_=" + ( nonce.guid++ ) +
[9434] Fix | Delete
uncached;
[9435] Fix | Delete
}
[9436] Fix | Delete
[9437] Fix | Delete
// Put hash and anti-cache on the URL that will be requested (gh-1732)
[9438] Fix | Delete
s.url = cacheURL + uncached;
[9439] Fix | Delete
[9440] Fix | Delete
// Change '%20' to '+' if this is encoded form body content (gh-2658)
[9441] Fix | Delete
} else if ( s.data && s.processData &&
[9442] Fix | Delete
( s.contentType || "" ).indexOf( "application/x-www-form-urlencoded" ) === 0 ) {
[9443] Fix | Delete
s.data = s.data.replace( r20, "+" );
[9444] Fix | Delete
}
[9445] Fix | Delete
[9446] Fix | Delete
// Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
[9447] Fix | Delete
if ( s.ifModified ) {
[9448] Fix | Delete
if ( jQuery.lastModified[ cacheURL ] ) {
[9449] Fix | Delete
jqXHR.setRequestHeader( "If-Modified-Since", jQuery.lastModified[ cacheURL ] );
[9450] Fix | Delete
}
[9451] Fix | Delete
if ( jQuery.etag[ cacheURL ] ) {
[9452] Fix | Delete
jqXHR.setRequestHeader( "If-None-Match", jQuery.etag[ cacheURL ] );
[9453] Fix | Delete
}
[9454] Fix | Delete
}
[9455] Fix | Delete
[9456] Fix | Delete
// Set the correct header, if data is being sent
[9457] Fix | Delete
if ( s.data && s.hasContent && s.contentType !== false || options.contentType ) {
[9458] Fix | Delete
jqXHR.setRequestHeader( "Content-Type", s.contentType );
[9459] Fix | Delete
}
[9460] Fix | Delete
[9461] Fix | Delete
// Set the Accepts header for the server, depending on the dataType
[9462] Fix | Delete
jqXHR.setRequestHeader(
[9463] Fix | Delete
"Accept",
[9464] Fix | Delete
s.dataTypes[ 0 ] && s.accepts[ s.dataTypes[ 0 ] ] ?
[9465] Fix | Delete
s.accepts[ s.dataTypes[ 0 ] ] +
[9466] Fix | Delete
( s.dataTypes[ 0 ] !== "*" ? ", " + allTypes + "; q=0.01" : "" ) :
[9467] Fix | Delete
s.accepts[ "*" ]
[9468] Fix | Delete
);
[9469] Fix | Delete
[9470] Fix | Delete
// Check for headers option
[9471] Fix | Delete
for ( i in s.headers ) {
[9472] Fix | Delete
jqXHR.setRequestHeader( i, s.headers[ i ] );
[9473] Fix | Delete
}
[9474] Fix | Delete
[9475] Fix | Delete
// Allow custom headers/mimetypes and early abort
[9476] Fix | Delete
if ( s.beforeSend &&
[9477] Fix | Delete
( s.beforeSend.call( callbackContext, jqXHR, s ) === false || completed ) ) {
[9478] Fix | Delete
[9479] Fix | Delete
// Abort if not done already and return
[9480] Fix | Delete
return jqXHR.abort();
[9481] Fix | Delete
}
[9482] Fix | Delete
[9483] Fix | Delete
// Aborting is no longer a cancellation
[9484] Fix | Delete
strAbort = "abort";
[9485] Fix | Delete
[9486] Fix | Delete
// Install callbacks on deferreds
[9487] Fix | Delete
completeDeferred.add( s.complete );
[9488] Fix | Delete
jqXHR.done( s.success );
[9489] Fix | Delete
jqXHR.fail( s.error );
[9490] Fix | Delete
[9491] Fix | Delete
// Get transport
[9492] Fix | Delete
transport = inspectPrefiltersOrTransports( transports, s, options, jqXHR );
[9493] Fix | Delete
[9494] Fix | Delete
// If no transport, we auto-abort
[9495] Fix | Delete
if ( !transport ) {
[9496] Fix | Delete
done( -1, "No Transport" );
[9497] Fix | Delete
} else {
[9498] Fix | Delete
jqXHR.readyState = 1;
[9499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function