diff options
author | Oleg Gaidarenko <markelog@gmail.com> | 2015-02-10 22:42:21 +0300 |
---|---|---|
committer | Oleg Gaidarenko <markelog@gmail.com> | 2015-02-15 02:01:59 +0300 |
commit | 4ef120d3f2578fe3d52eb6c0d0641df945991391 (patch) | |
tree | 9b836dd55f80398f5203bc2497d30a1e8d0cb51d /src/ajax | |
parent | 0ac28ed293681cb8f2e9fdd11efa0021da039c84 (diff) | |
download | jquery-4ef120d3f2578fe3d52eb6c0d0641df945991391.tar.gz jquery-4ef120d3f2578fe3d52eb6c0d0641df945991391.zip |
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
Diffstat (limited to 'src/ajax')
-rw-r--r-- | src/ajax/load.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ajax/load.js b/src/ajax/load.js index 2d56b704b..595061443 100644 --- a/src/ajax/load.js +++ b/src/ajax/load.js @@ -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 ) { |