mirror of
https://github.com/jquery/jquery.git
synced 2026-02-04 02:14:55 -05:00
Ajax: make jQuery#load "type" field explicit
* Move "evalScript.php" file to appropriate place
* Make jQuery#load "type" field explicit and add test for it
Ref trac-11264
Ref 4ef120d3f2
This commit is contained in:
@@ -46,8 +46,10 @@ jQuery.fn.load = function( url, params, callback ) {
|
||||
jQuery.ajax({
|
||||
url: url,
|
||||
|
||||
// if "type" variable is undefined, then "GET" method will be used
|
||||
type: type,
|
||||
// If "type" variable is undefined, then "GET" method will be used.
|
||||
// Make value of this field explicit since
|
||||
// user can override it through ajaxSetup method
|
||||
type: type || "GET",
|
||||
dataType: "html",
|
||||
data: params
|
||||
}).done(function( responseText ) {
|
||||
|
||||
Reference in New Issue
Block a user