From: Ariel Flesler Date: Tue, 27 May 2008 22:44:06 +0000 (+0000) Subject: jquery ajax: Closes #1516. load() can get a string of data (not only a hash) and... X-Git-Url: http://git.asbjorn.biz/?a=commitdiff_plain;h=7ec772374d132149d72418abce4569dedbd4168b;p=jquery.git jquery ajax: Closes #1516. load() can get a string of data (not only a hash) and it'll be a GET request. --- diff --git a/src/ajax.js b/src/ajax.js index 3e43ffb..eb81e4c 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -26,7 +26,7 @@ jQuery.fn.extend({ params = null; // Otherwise, build a param string - } else { + } else if( typeof params == 'object' ) { params = jQuery.param( params ); type = "POST"; }