diff options
author | Oleg Gaidarenko <markelog@gmail.com> | 2015-02-15 01:25:02 +0300 |
---|---|---|
committer | Oleg Gaidarenko <markelog@gmail.com> | 2015-02-15 02:03:32 +0300 |
commit | 1d3d2b1aa6bcd4de9e3a2d16f98685ac8726311c (patch) | |
tree | 1ceb6709aa61324c0a8f22800e4096f656d22136 /src/ajax/load.js | |
parent | 4b3e63066dd480d07b9ce8057cb0c02b8ad7e990 (diff) | |
download | jquery-1d3d2b1aa6bcd4de9e3a2d16f98685ac8726311c.tar.gz jquery-1d3d2b1aa6bcd4de9e3a2d16f98685ac8726311c.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
Ref 4ef120d3f2578fe3d52eb6c0d0641df945991391
Diffstat (limited to 'src/ajax/load.js')
-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 e2f19affc..9d868a5dd 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 ) { |