Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jquery
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
夏彬
jquery
Commits
081c4efc
Commit
081c4efc
authored
Nov 28, 2012
by
Matt Farmer
Committed by
jaubourg
Nov 28, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Alias options.method to options.type. Fixes #12004.
parent
9ae6b1a0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
ajax.js
src/ajax.js
+3
-0
No files found.
src/ajax.js
View file @
081c4efc
...
@@ -431,6 +431,9 @@ jQuery.extend({
...
@@ -431,6 +431,9 @@ jQuery.extend({
// We also use the url parameter if available
// We also use the url parameter if available
s
.
url
=
(
(
url
||
s
.
url
||
ajaxLocation
)
+
""
).
replace
(
rhash
,
""
).
replace
(
rprotocol
,
ajaxLocParts
[
1
]
+
"//"
);
s
.
url
=
(
(
url
||
s
.
url
||
ajaxLocation
)
+
""
).
replace
(
rhash
,
""
).
replace
(
rprotocol
,
ajaxLocParts
[
1
]
+
"//"
);
// Alias method option to type as per ticket #12004
s
.
type
=
options
.
method
||
options
.
type
||
s
.
method
||
s
.
type
;
// Extract dataTypes list
// Extract dataTypes list
s
.
dataTypes
=
jQuery
.
trim
(
s
.
dataType
||
"*"
).
toLowerCase
().
match
(
core_rnotwhite
)
||
[
""
];
s
.
dataTypes
=
jQuery
.
trim
(
s
.
dataType
||
"*"
).
toLowerCase
().
match
(
core_rnotwhite
)
||
[
""
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment