From 7ec772374d132149d72418abce4569dedbd4168b Mon Sep 17 00:00:00 2001 From: Ariel Flesler Date: Tue, 27 May 2008 22:44:06 +0000 Subject: [PATCH] jquery ajax: Closes #1516. load() can get a string of data (not only a hash) and it'll be a GET request. --- src/ajax.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"; } -- 1.7.10.4